+ 2
import java.util.Scanner; //capital S and add semi colon after.
public class Scanner1 //shloud not useto match with predefined names, take a new different name
//need these above 2 corrections
{
public static void main(String[] args)
{
Scanner enter=new Scanner(System.in);
int a,b;
System.out.print("Enter a :");
a=enter.nextInt();
System.out.print("Enter b :");
b=enter.nextInt();
System.out.printf("A+B=%d\n",a+b);
}
}
+ 2
What changes you made..? Still same code no changes done by you? Hanane



