Da'iMacDaddy
Unix Newb.
OK I bought a book.... to help me learn java. I chose java because it is multiplatform (so i figured the book would be good for macs too)
and now im getting some error messages when i go to compile the code on the command line. 5 errors and all are "Cannot resolve symbol"
I was wondering is there something that I could be missing. If you would like to see my code here it comes.
/*
*HelloUser
*Demonstrates simple I/O
*/
import Java.io.*;
public class HelloUser {
public static void main(String args[]) {
String name;
BufferedReader reader;
reader = new BufferedReader(new InputStreamReader(System.in));
System.out.println("\nWhat is your name? ");
try {
name = reader.readLine();
System.out.println("Hello, " + name + "!");
}
catch (IOException ioe) {
System.out.println("I/O Exception Occurred");
}
}
}
Well thanx in advance
and now im getting some error messages when i go to compile the code on the command line. 5 errors and all are "Cannot resolve symbol"
I was wondering is there something that I could be missing. If you would like to see my code here it comes.
/*
*HelloUser
*Demonstrates simple I/O
*/
import Java.io.*;
public class HelloUser {
public static void main(String args[]) {
String name;
BufferedReader reader;
reader = new BufferedReader(new InputStreamReader(System.in));
System.out.println("\nWhat is your name? ");
try {
name = reader.readLine();
System.out.println("Hello, " + name + "!");
}
catch (IOException ioe) {
System.out.println("I/O Exception Occurred");
}
}
}
Well thanx in advance