Results 1 to 7 of 7
- 07-16-2008, 05:50 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 48
- Rep Power
- 0
Wats the problem here ? anythig wrong with IDE
import java.io.*;
import java.util.Scanner; // showing compile time error here
public class scanTest {
public static void main(String []args) {
Scanner s=new Scanner(System.in); // showing compile time error here
String param=s.next();
System.out.println("the param1"+param);
int value=s.nextInt();
System.out.println("second param2"+value);
s.close();
}
}
- 07-16-2008, 05:55 PM #2
What is the error?// showing compile time error here
You'll save us all a lot of time if you give ALL the information you have in the beginning.
Copy and paste the full text of the messages here.
- 07-16-2008, 06:46 PM #3
Member
- Join Date
- May 2008
- Posts
- 3
- Rep Power
- 0
What version of Java are you using?
- 07-17-2008, 08:04 AM #4
Member
- Join Date
- Jun 2008
- Posts
- 48
- Rep Power
- 0
reply to Norm
scanTest.java [3:1] cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner; // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
3 errors
Errors compiling scanTest.
- 07-17-2008, 08:10 AM #5
Member
- Join Date
- Jun 2008
- Posts
- 48
- Rep Power
- 0
scanTest.java [3:1] cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner; // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
3 errors
Errors compiling scanTest.
I m using netbeans 3.5.1 & j2sdk 1.4.1
- 07-17-2008, 08:14 AM #6
Member
- Join Date
- Jun 2008
- Posts
- 48
- Rep Power
- 0
scanTest.java [3:1] cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner; // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
scanTest.java [9:1] cannot resolve symbol
symbol : class Scanner
location: class scanTest
Scanner s=new Scanner(System.in); // showing compile time error here
^
3 errors
Errors compiling scanTest.
"""""" I m using netbeans 3.5.1 & j2sdk 1.4.1 """"""""
- 07-17-2008, 04:17 PM #7
Similar Threads
-
What's wrong with my codes?
By ayoood in forum New To JavaReplies: 16Last Post: 09-01-2008, 03:57 AM -
Please Help, can't figure out what I'm doing wrong.
By tamik0 in forum New To JavaReplies: 2Last Post: 07-11-2008, 09:41 AM -
wrong values
By mark-mlt in forum New To JavaReplies: 8Last Post: 04-25-2008, 11:11 AM -
I am Doing Something Wrong But Don't Know What?
By BHCluster in forum New To JavaReplies: 3Last Post: 04-16-2008, 01:16 PM -
What's wrong with this code?
By Wizard wusa in forum New To JavaReplies: 14Last Post: 01-22-2008, 11:55 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks