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...
Type: Posts; User: Norm
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...
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...
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();
...
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...
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™...
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...
I've merged the threads.
What problems are you having? Can you explain?
Please post the code here on the thread, not as links.