fork(1) download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. String x = teste().toString();
  4. System.out.println(x);
  5. }
  6. public static Integer teste() {
  7. return 42;
  8. }
  9. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
42