Killer Chef
02-07-02, 03:12 AM
Hi, I have just started a JAVA programming course and I'm trying to get my first assignment running. It's only a small little program but it's giving me grief. I know it's a simple little problem as I had it working earlier today just after I wrote it.
See Below
import ccj.*;
public class hellogeorge
{
public static void main (String [] args)
{
String name;
System.out.print ("Enter Your Name Please :");
name= Console.in.readLine ();
System.out.println("\n\nHello "+name);
}
}
And the error I'm getting is
cannot resolve symbol
location: package Console
name= Console.in.readLine ();
Anyone know what the problem is?? (apart from me obviously:) )
Thanks!!
See Below
import ccj.*;
public class hellogeorge
{
public static void main (String [] args)
{
String name;
System.out.print ("Enter Your Name Please :");
name= Console.in.readLine ();
System.out.println("\n\nHello "+name);
}
}
And the error I'm getting is
cannot resolve symbol
location: package Console
name= Console.in.readLine ();
Anyone know what the problem is?? (apart from me obviously:) )
Thanks!!