Skip to content

Instantly share code, notes, and snippets.

@WarFox
Last active December 18, 2015 21:29
Show Gist options
  • Save WarFox/5847999 to your computer and use it in GitHub Desktop.
Save WarFox/5847999 to your computer and use it in GitHub Desktop.

Revisions

  1. @dputhrote-cais dputhrote-cais revised this gist Jul 2, 2013. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions PrintWithoutSemiColon.java
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,12 @@
    public class PrintWithoutSemiColon {

    public static void main(String[] args) {
    if (System.out.printf("Hello World!\n") == null) {
    }
    if (System.out.printf("Hello World!\n") == null) {}

    /**
    * This one is given by Salil Joshi, in the following LinkedIn discussion
    * http://www.linkedin.com/groups/How-print-Hello-World-in-3983267.S.252703117?qid=1ce0f1f0-73f3-4c31-ba37-c27aa8e81b55&trk=group_most_popular-0-b-ttl&goback=%2Egmp_3983267
    */
    if (System.out.append("Hello World!\n").equals(null)) {
    }
    if (System.out.append("Hello World!\n").equals(null)) {}
    }
    }
  2. Deepu Mohan Puthrote revised this gist Jun 27, 2013. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions PrintWithoutSemiColon.java
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,14 @@
    public class PrintWithoutSemiColon {

    public static void main(String[] args) {
    if (System.out.printf("Hello World!") == null) {
    if (System.out.printf("Hello World!\n") == null) {
    }
    }

    /**
    * This one is given by Salil Joshi, in the following LinkedIn discussion
    * http://www.linkedin.com/groups/How-print-Hello-World-in-3983267.S.252703117?qid=1ce0f1f0-73f3-4c31-ba37-c27aa8e81b55&trk=group_most_popular-0-b-ttl&goback=%2Egmp_3983267
    */
    if (System.out.append("Hello World!\n").equals(null)) {
    }
    }
    }
  3. Deepu Mohan Puthrote created this gist Jun 24, 2013.
    8 changes: 8 additions & 0 deletions PrintWithoutSemiColon.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    public class PrintWithoutSemiColon {

    public static void main(String[] args) {
    if (System.out.printf("Hello World!") == null) {
    }
    }

    }