Wow this all finally works and for the most part I understand it all. :)
Thanks so much for everyone's help.
...Now I should probably rebuild this on my own sometime just to make sure I can. =P
Type: Posts; User: Hallowed
Wow this all finally works and for the most part I understand it all. :)
Thanks so much for everyone's help.
...Now I should probably rebuild this on my own sometime just to make sure I can. =P
I'm unfamiliar with how to use a switch statement.
This is my overall code. It's working except for #2 there is some error in the way it searches through the array. I'm trying to find it. jk. i...
Well I came up with this code for it, and I think its actually storing the class in there. I just got to get it to work when I try to display it so I know if its working or not.
import...
This:
studentRecords.add(newStudent);
would be presuming that I created my array in a class named studentRecords right?
when I input that code it tells me that the method .add is undefined for...
import java.util.Scanner.*;
import java.util.ArrayList.*;
^^What do the asterisks * at the end do? when I use them in eclipse it doesn't recognize the array list.
package ArrayList;
...
Eh, I'll have to go through it all anyway and make sure I can figure out what its doing, and I really appreciate ALL the help :)
and thanks, I don't know what I was thinking telling it to get the...
K so I'm guessing if I want to be able to do that I have to have them put the information in one at a time.. especially since its not liking that I have lots of " " in the statement.
But right now...
So this line [ Student newStudent = new Student("myFirstName","mySurname", 123, "my major, 1.2); ]
will create a new student in an array? with the name "myFirstName" and all the other values...
I feel like I'm not making much progress here. Everything is underlined in red and complaining at me =S
package ArrayList;
import java.util.Scanner;
public class Menu {
Hey thank you so much, your a saint. I'll try working with this.
K, I'm basically brand new to java and have to do an assignment way beyond anything I've learned.
this is what im trying to accomplish:
Specification