View Single Post
  #2 (permalink)  
Old 07-01-2008, 11:44 AM
willemjav willemjav is offline
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 342
willemjav is on a distinguished road
to string or not to string
while (!str.equalsIgnoreCase(" //*")) {
img[i].infotext = img[i].infotext.concat(str + "\n");
str = scanner.nextLine();
}

The marker //* appears on each new line and by reading the string line by line the code actually works including the line breaks

to string or not to string

willemjav
Reply With Quote