void main (String[] args)
{
  java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
  String s;
  while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s);
}
  • created

    Jul '04
  • last reply

    Apr '10
  • 1

    reply

  • 1.4k

    views

  • 2

    users

5 years later

Nice one I will try it in my system I am eager to saw out put of this coding I saw this first time this type of syntax I never used it " while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); " .