Question about two peices of code
1.
Code:
{
		int i=0;
		int j=0;
		int total=0;
		while(Character.isWhitespace(lines[i].charAt(j)))
		{
			total++;
			i++;
			j++;
		}
		return total;
this should show the number of characters in an already loadaded file but it doesnt

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