Original Post
I can't tell if this is a problem with my code, or with my compiler/IDE. I am using JCreator, and I am trying to make my code print my name, address and telephone number (book exercise) however, I get an error saying "'{' expected on line 10" and "'}' expected on line 22" but I have them on those lines I think what am I doing wrong? Also, if it is my IDE, what should I do to change it? Or should I switch IDE, and if so, what to? Here is my code:
/**
* @(#)Exercise 2.java
*
* Exercise 2 application
*
* Sophie Marston
* version 1.00 2007/2/1
*/
public class Exercise 2 {
public static void main(String[] args) {
// Print my name
System.out.println("Sophie Marston");
// Print my address
System.out.println("Somewhere");
// Pritn my telephone number
System.out.println("NEVER!");
}
}
[Edited by - PythonRulez on February 1, 2007 2:07:31 PM]