fork download
  1. class Main {
  2. public static void main(String[] args) {
  3. int x = 1;
  4. int y = 2;
  5. System.out.print("x: " + x + " y: " + y);
  6. System.out.printf("x: %d y: %d", x, y);
  7. }
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/47102/101
Success #stdin #stdout 0.15s 36644KB
stdin
Standard input is empty
stdout
x: 1 y: 2x: 1 y: 2