Using System.err.println
public static void main(String X[]) {
// keep reading until user enters 0
// compare current input with maximum so
// far. update maximum so far if input
System.err.println(input + + max + + count);
System.out.println(Enter number :);