re-structure

change the store the data in arraylist and convert to string to get the
stream out