Java


The Java support is as in a standard console application.

Reading

  • Examples
Scanner in = new Scanner(System.in);
int n = in.nextInt();

or

Scanner in = new Scanner(System.in);
String line = in.nextLine();
int size = Integer.parseInt(line);

Printing

Print using System.out.print* methods

  • Examples
System.out.println("This is a message");
System.out.printf("%s is %d-years-old", "John", 19);