Im having "cannot find symbol errors" in my java program. Its in two lines. Can someone take a look?

Im having “cannot find symbol errors” in my java program. Its in two lines. Can someone take a look?
The errors occur in lines 1 and 7. I thinks its a problem with scanner. Can anyone clarify what I need to change so I can make this program compile?

import java.util.scanner;
public class Program6
{
public static void main(String[] args){

int n = 0;
Scanner scan = new Scanner(System.in);
double x = scan.nextDouble();
System.out.println(“Enter several ints, push D twice + to \
exit”);

while (n <= 100) { // Test and Loop
System.out.println(n);
n = n + 1;
}
}
}

Best answer:

I think you should write: import java.util.Scanner;

instead of: import java.util.scanner;

(s->S)

Tags: , , , , , , , , , ,

Under Forum

1 Comment for Im having "cannot find symbol errors" in my java program. Its in two lines. Can someone take a look?

  • 1. jr91403  |  July 15th, 2007 at 5:53 pm

    Just make your import statement

    import java.util.*;

    that way you don’t have to worry about caps and you dont have to write a whole bunch of import statements.

Leave a Comment for Im having "cannot find symbol errors" in my java program. Its in two lines. Can someone take a look?

Required

Required, hidden

Trackback this post  |  Subscribe to the comments via RSS Feed


Forum