String line = null;
double value;
BufferedReader in = new BufferedReader(new FileReader("C:\Users\Bilal\Documents\Work\scrambler\input.txt"));
int x=0;
while (line != "end"){
line = in.readLine();
System.out.println(line);
x++;
}
}}
When I run this.. the loop does not stop when the word end comes.. why???????