Program not working please help

import java.util.Scanner;
public class Addition
public static void main( String args[] )
Scanner input = new Scanner( System.in );
int number1;
int number2;
int sum;
System.out.print( "Enter first integer: " );
number1 = input.nextInt();
System.out.print( "Enter second integer: " );
number2 = input.nextInt();
sum = number1 + number2;
System.out.printf( "Sum is %d\n", sum );
I get an error in the import statement
class java.util.scanner ot found is the message

Scanner isn't available until 1.5. Apparently you're still on <= 1.4

Similar Messages

Maybe you are looking for

  • Google contacts and calendar events entered on my iPhone 5s are not syncing with my google account.

    Newly entered contacts and calendar events entered on my IPhone 5s are not syncing to google. Facts that may be pertinent: - I switched from the iPhone 4 to the iPhone 5s and did the easy option of having it automatically set up like my previous phon

  • How do I DELETE ALL the emails in my inbox?

    Trying to DELETE ALL of the EMAILS in my INBOX as ONE TIME?  I have over 1300 that I have reviewed from my phone or ipad???????????? Solved! Go to Solution.

  • Improve Database adapter insert performance

    Hopefully this is an easy question to answer. I'm getting passed to my BPEL over 8,000 records and I need to take those records and then insert them into an Oracle database. I've been trying to tune the insert by using properties like inMemoryOptimiz

  • IOS XR Layer 2 internetworking and layer 2 local switching

    I have 12410 with iox 3.6.1 and sip 501 with spa-5GE I want to configure layer 2 vpns for internetworking and layer 2 local switching. I search in the command reference and I didnt find the connect command nor internetwork ip under the PW class. can

  • Austin Data Center Video Link

    I cannot open the link to the video http://www.oracle.com/broadband/showondemand.html?1809334 I have also tried it at home and have the same problem there. The window opens, starts to load and then disappears.