fork(1) download
  1. class Ideone
  2. {
  3. public static void main(String[] args) {
  4. System.out.println(run(new Object[] {null}, 0));
  5. System.out.println(run(new Object[] {(byte)5}, 0));
  6. }
  7.  
  8. static Integer run(Object[] resultLine, int index) {
  9. Integer key= (resultLine[index] == null) ? null : ((Byte)resultLine[index]).intValue();
  10.  
  11. return key;
  12. }
  13. }
Success #stdin #stdout 0.08s 46760KB
stdin
Standard input is empty
stdout
null
5