View Single Post
  #3 (permalink)  
Old February 3rd, 2005, 04:58 AM
dglnz dglnz is offline
Authorized User
 
Join Date: Feb 2005
Location: chch, n/a, New Zealand.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 

Quote:
quote:Those weren't quotes, I'm not sure what those were. You also need two closing brackets. Here:

public class OurFirstProgram
{
    public static void main(String[] args)
    {
       System.out.println("this is my first program !");
   }
}
sorry but where do the brackets go ???

to explain further...

I purchased a copy of java 2 beginning by Ivor Horton and on page28 i copied his 1st sample program. as below (without my comments).

Code:
public class OurFirstProgram
{
    public static void main(String[] args)
    {
       System.out.println(¬®this is my first program !¬®);
    }
}
the errors are about the quotation marks and tried to see if i could solve this my tring no quotes or single quotes. hense the second question (maybe not so clearly written) which is ...

because i installed netbeans ide and even tried it under that enviroment (and getting the simlar errors) I wanted to know if i should install the proper SDK rpm (running Mandrakelinux which is the compiled install program).
Reply With Quote