If else shorthand
<p>I'm trying to display POSITIVE if the number is greater than Zero while NEGATIVE if the number is less than Zero. </p>

<pre><code>import java.io.*;

public class PosNeg {
    public static void main(String[] args){
        int number;
        String input="";

        BufferedReader in = new BufferedReader(new InputStreamreader(System.in));

        System.out.print("Input a Number: ");

        try{
            input = in.readLine();
        } catch(IOException e){
            System.out.println("Error!");
        }

        number = Integer.parseInt(input);

        System.out.println(number &lt; 0 ? "The number "+number+"is NEGATIVE":The number "+number+"is POSITIVE");
    }
}
</code></pre>

<p>I have done something wrong with the last System.out.println statement but i do not know how to fix it. i hope anyone could help me.</p>
