Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.09 seconds.

  1. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    I used the command prompt.
  2. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    "Any Java interface" sounds to me like the command prompt would be okay. But even if it's not, you have to figure out whether the problem lies with your code or with netbeans, and taking netbeans out...
  3. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
  4. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    If you don't know what it means to compile something, I suggest you use the command line. That way you know netbeans isn't hiding something from you.
  5. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    Your program seems to work fine for me. Are you sure this is the code you're running? Have you recompiled?
  6. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    I might suggest that you write out the input(s) from the command line, then draw where the Scanner is before and after each call. What are you doing with the information returned from the Scanner?
    ...
  7. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    Did you read the API for nextLine()? What does it do? If you want help, you'll have to provide an SSCCE with updated code that shows what you're doing now.
  8. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    I'm not sure what you mean when you ask how to type nextLine() into the code. You type it in exactly how you would have typed any of the other methods.
  9. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    I'm not really sure why changing the import would do anything at all. The API is organized by class, and you should see a list of every class in the frame on the left of the page. One of those is...
  10. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    I'm not really sure what you mean by that. The API is basically a user manual for Java classes, and it tells you how to use them. You've already been told what you're doing wrong and how to fix it.
    ...
  11. Replies
    23
    Views
    2,426

    Re: I don't get why this code isn't working

    Did you read the API for Scanner?
Results 1 to 11 of 11