Look at line 7 and find the null value and then backtrack in the code to see why it is null.
Type: Posts; User: Norm
Look at line 7 and find the null value and then backtrack in the code to see why it is null.
How are the entries in the JTestfield separated? Is each on a new line?
If so, get the text from the textfield into a String and use the split() method with the newline character.
split() creates...
The name would follow from what its purpose is. If it can only hold Contact objects, then that might be a good name. But the posted code uses Generics which means it can hold any type of object,...
I wonder why the professor used the name of a Java SE interface for the name of his interface.
Is the exercise: to write your own versions of list and arraylist?
No, it does not look wrong. ...
What is the difference between the Java SE ArrayList and your ArrayListC?
What is the benefit of the new class?
Does that say that the ArrayListC class is only to hold Contact objects? No other types like String or Integer?
I disagree. It will be confusing.
It's not a good idea to give your class the same name as a Java SE class. That will make for confusion.
ArrayList is the name of a Java SE class. Choose a new name for your class.
Have you read the API doc for the String class?
Do you mean some other class?
Use a loop to look at each object in the list.
You are worrying about coding details before you have a design...
Strange comparison. When would that be false? What values did you really want to compare there?
Before writing any more code, try making a list in pseudo code of the steps the program should...
What have you tried?