Results 1 to 3 of 3
  1. #1
    paul is offline Member
    Join Date
    Jul 2007
    Posts
    26
    Rep Power
    0

    Default Problem with my first code

    Hi, i have just installed a java compiler and wrote my first java program, copied directly from a java book. Unfortunately it found errors in one of my lines and more precisely didn't like the full stops.

    Java Code:
    public class FirstVar
    {
    public static void main(String[] args)
    {
    String str = "First value";
    System.out.printIn(str);
    str = "Second Value";
    System.out.printIn(str);
    }
    }
    why won't it work for me??
    Thanks

  2. #2
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    It's System.out.println not System.out.printIn

  3. #3
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Posts
    130
    Rep Power
    0

    Default

    Yup, misread typo, just like what Seemster said
    println ==> print line u know

Similar Threads

  1. [SOLVED] Problem with code - inheritence
    By yalla in forum New To Java
    Replies: 1
    Last Post: 03-30-2008, 07:11 AM
  2. What is the answer yo my problem with this code
    By masaka in forum New To Java
    Replies: 4
    Last Post: 03-26-2008, 07:33 AM
  3. Problem with code
    By jvasilj1 in forum New To Java
    Replies: 5
    Last Post: 02-02-2008, 09:34 AM
  4. Problem with code
    By oregon in forum New To Java
    Replies: 3
    Last Post: 08-05-2007, 06:57 PM
  5. Problem with zero in my code
    By fernando in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 07:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •