fork download
  1. class Exemplo {
  2. public static void main (String[] args) {
  3. double height = 1280;
  4. double width = 1024;
  5. System.out.printf("A resolução da tela é de %.0f por %.0f.", height, width);
  6. }
  7. }
Success #stdin #stdout 0.1s 28000KB
stdin
Standard input is empty
stdout
A resolução da tela é de 1280 por 1024.