Wait...I see a potential Null Pointer Exception!
You never initialize the String variable line nor do you change it to anything.
Try changing it to
while ((br2.readLine()) != null) {
...
Type: Posts; User: javapenguin
Wait...I see a potential Null Pointer Exception!
You never initialize the String variable line nor do you change it to anything.
Try changing it to
while ((br2.readLine()) != null) {
...
while ((line = br2.readLine()) != null)
Normally in while and if statements, use two "=" in a row for equals.