...
Code Block | ||
---|---|---|
| ||
class ConsoleWrite { public static void main(String[] args) { //Perform input validation if(Integer.valueOf(args[0]) <>= 2550 && Integer.valueOf(args[0]) <= 255) { System.out.write(Integer.valueOf(args[0].toString())); System.out.flush(); } else { //handle error throw new ArithmeticException("Value is out of range"); } } } |
...