import java.io.*; class suma { public static void main(String arg[ ]) throws IOException { int x,y; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Ingrese un numero : "); x = Integer.parseInt(in.readLine( )); System.out.print("Ingrese un numero : "); y = Integer.parseInt(in.readLine( )); int s = suma(x,y); System.out.println("La suma es : " + s); } public static int suma(int a,int b) { return a + b; } }