Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: just starting

  1. #21
    marco is offline Member
    Join Date
    Jul 2007
    Posts
    23
    Rep Power
    0

    Default

    application it is, and i dont know why u are gettin the error sry, i only program in Applets :/

  2. #22
    Neon Blue is offline Member
    Join Date
    Aug 2007
    Posts
    5
    Rep Power
    0

    Default just starting

    Hi, I overcame some of my "just starting" problems by opening an old Win 2000 laptop because it is compatible with my text and SDK 1.3.

    I wrote this for "Hello World", it compiles but returns two statements, one in quotes and one without quotes. i have decided not to troubleshoot it just yet, but to post this code.

    public class HelloWorld {
    public static void main(String[] arguments){
    String line1 = "HelloWorld";
    String quote = line1;
    System.out.println('\u0022' + quote + '\u0022');
    System.out.println("Hello world");
    }
    }

  3. #23
    dmacvittie is offline Member
    Join Date
    Aug 2007
    Posts
    30
    Rep Power
    0

    Default

    Neon Blue, your code is acting correctly...
    The '\u0022' is a quote, so the line
    System.out.println('\u0022' + quote + '\u0022');
    should output
    "HelloWorld"
    Then right after that you tell it to output another line...
    System.out.println("Hello world");

    My guess is that some of this is code form the book you're using and some is code you put in - all cool, it's doing what it's supposed to.

    Don.
    Don MacVittie F5 Networks - DevCentral

  4. #24
    dmacvittie is offline Member
    Join Date
    Aug 2007
    Posts
    30
    Rep Power
    0

    Default

    SpecBailey, I'm not certain - all should go well if you're in the bin directory. It's a long shot, but check the bin directory and make certain that java.exe exists in the directory. If not you will need to reinstall - or check your path to find out which java.exe is actually running and move things to that bin directory (though for an app this simple I'm skeptical that the majority of version differences would hamper you).

    Don.
    Don MacVittie F5 Networks - DevCentral

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Indexing starting with 1
    By ravian in forum New To Java
    Replies: 4
    Last Post: 01-04-2008, 01:03 PM
  2. Help, starting with java
    By mathias in forum New To Java
    Replies: 2
    Last Post: 08-15-2007, 08:15 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
  •