It is necessary to display the first word in the line. I tried to assign the string characters to the variable char and display them up to a space. Nothing happened.
int c = 0; while (char b = fam.get(i).charAt(c); b != " "; c++) { System.out.println(b); } Please tell me how it will be right?