How to execute the "if" and "else" at the same time?
<p>Interesting problem:</p>

<p>Change if statement and print out "Hello World" </p>

<pre><code>    public static void main(String[] args) {
        if(){
            System.out.println("Hello");
        }else{
            System.out.println("World");
        }
    }
</code></pre>

<p>My solution is to add "!System.out.println("Hello")" 
in the if statement,But it doesn't work, any ideas?</p>

<pre><code>    public static void main(String[] args) {
        if(!System.out.println("Hello")){
            System.out.println("Hello");
        }else{
            System.out.println("World");
        }
    }
</code></pre>

<p>UPDATE:
I think this works:</p>

<pre><code>    public static void main(String args[]) {    
        if(System.out.append("Hello ")==null){
            System.out.print("Hello ");
        }else{
            System.out.println("World");
        } 
    }
</code></pre>

<p>In C:</p>

<pre><code>main()
{   if(printf("Hello"),0)
         printf("Hello");
    else
       printf(" world!\n");
   getch();
}
</code></pre>
