Search:

Type: Posts; User: helloworld922

Search: Search took 0.24 seconds.

  1. Replies
    10
    Views
    2,479

    Re: MORE java homework help.

    :) glad to see you figured it out.

    Yes, you can't use the == comparison for strings because strings are objects. The == on objects compares the addresses of the strings. Just because the value of...
  2. Replies
    10
    Views
    2,479

    Re: MORE java homework help.

    You want the program to terminate when the user types "quit", not something that starts with 'q'. Use the equals method:


    String input ="";
    while(!"quit".equals(input))
    {
    //... stuff...
Results 1 to 2 of 2