Question about two peices of code
1.this should show the number of characters in an already loadaded file but it doesntCode:{ int i=0; int j=0; int total=0; while(Character.isWhitespace(lines[i].charAt(j))) { total++; i++; j++; } return total;
2How do you take a file with blank lines in it and crunch it up for example
this is
a file
now
should turn into
this
is
a file
now


Reply With Quote


Bookmarks