import java.io.*;
public class Teste {
public static void main(String args[]) throws IOException {
System.out.print(soma(ler(), ler()));
}
public static int soma(int a, int b) {
return (a + b);
}
public static int ler() throws IOException {
return (System.in.read());
}
}
No console eu ponho 6 por exemplo e ele retorna um valor como “67”, sem nem ler dois valores.
Sou bem iniciante…