Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. [SOLVED] Re: Please help me first time user, and need help with a method

    The foreach for statement uses an iterator that doesn't want the list changed as it goes through the list. Read the API doc for the error message, it's a class.
    Use the original style for loop with...
  2. [SOLVED] Re: Please help me first time user, and need help with a method

    Look at the API doc for the ArrayList class, The method to use would be listed there.

    Check the API doc for the method you are using to format the String that is returned.
    I suggest that you...
  3. [SOLVED] Re: Please help me first time user, and need help with a method

    String firstname = keybd.nextLine();
    firstName = firstname;

    It's not necessary to copy from one variable to another. Save the value in the variable:

    firstName = keybd.nextLine();
    ...
  4. [SOLVED] Re: Please help me first time user, and need help with a method

    You need to read the API doc for the Scanner class to find the correct method to use to read an int value.
    When writing an assignment statement to save a value returned by a method, the type of the...
  5. [SOLVED] Re: Please help me first time user, and need help with a method

    Look at the tutorial for using constructors:
    Passing Information to a Method or a Constructor (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    Creating Objects (The Java™...
  6. [SOLVED] Re: Please help me first time user, and need help with a method

    Use the println() method to ask a question
    and one of the Scanner class methods to read the answer.
    When you have all the answers you need to build a Student object, use the Student class's...
  7. [SOLVED] Re: Please help me first time user, and need help with a method

    I've merged the threads.

    What problems are you having? Can you explain?
  8. [SOLVED] Re: Please help me first time user, and need help with a method

    Please post the code here on the thread, not as links.
Results 1 to 8 of 8