
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
winnie Lim wrote:
Also i would like to ask how would i save the student name and ID into an arraylist and retrieve it from the arraylist to delete? Thanks for help!

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Campbell Ritchie wrote:You appear to be calling addStudent() etc from another class, SchoolApp, and SchoolApp hasn't got an addStudent() method.
You need to create a School object in that main method, then invoke the methods on that object.
By the way: your addStudent method in the School class doesn't seem to do anything. It asks for the Student's name, but doesn't do anything with it. It that because the class is incomplete?
Campbell Ritchie wrote:How do you create a new object of any class? You do the same with the School class.
And please don't go saying questions are urgent.
SCJA
When I die, I want people to look at me and say "Yeah, he might have been crazy, but that was one zarkin frood that knew where his towel was."

SCJA
When I die, I want people to look at me and say "Yeah, he might have been crazy, but that was one zarkin frood that knew where his towel was."

| Consider Paul's rocket mass heater. |