View Single Post
  #5 (permalink)  
Old February 5th, 2005, 12:24 PM
rbonslat rbonslat is offline
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rbonslat
Default

Let me see how to explain this. I don't think it has anything to do with Java SDK. I copied, pasted and compile your exact same code on my text editor and it gave me this:

C:\Documents and Settings\Robert\Desktop\OurFirstProgram.java:5: illegal character: \168
       System.out.println(¨this is my first program !¨);
                          ^
C:\Documents and Settings\Robert\Desktop\OurFirstProgram.java:5: illegal character: \168
       System.out.println(¨this is my first program !¨);
                                                     ^
C:\Documents and Settings\Robert\Desktop\OurFirstProgram.java:5: ')' expected
       System.out.println(¨this is my first program !¨);
                                                       ^
3 errors

this seems to be the same error message 168 to me. Now when I deleted the imposter quotes that you have and added real quotes, it compiled successfully.

public class OurFirstProgram
{
    public static void main(String[] args)
    {
       System.out.println("this is my first program !");
   }
}


Reply With Quote