News for hackers. Stuff that matters.
Re:Why Python is more fun that Java by chrisbroadfoot on Saturday August 16, 2008 @09:11PM (#278099)
TRWTF is this:

  for (String s : args[0].split("\\s+"))
      System.out.println(s);
which is exactly the same as:

  System.out.println(args[0]);
(redacted)
Re:Why Python is more fun that Java by jdale27 on Saturday August 16, 2008 @09:38PM (#278111)

  [jdale@localhost ~]$ java -cp . Test "foo bar baz"
  foo
  bar
  baz
Re:Why Python is more fun that Java by chrisbroadfoot on Saturday August 16, 2008 @09:55PM (#278117)
Oh, good point. Cheers.

I then submit my Groovy solution:

  args[0].split().each { println it }