Jump to content

  • Log In with Google      Sign In   
  • Create Account

EmmetjeGee

Member Since 28 Nov 2005
Offline Last Active Jul 23 2016 05:46 AM

#5200819 NullPointerException Problem

Posted by on 30 December 2014 - 10:03 AM

I always write a loop like that as:

        String line = reader.readLine();
        while (null != line) {
            // Do you thing here
            line = reader.readLine();
        }

So preventing extra checks




PARTNERS