Hi guys,
Firstly, thanks for the great community, have been lurking for a while and have picked up a lot of help from existing threads.
I am making a small program which takes some inputs as strings, i then need to display a list of these inputs, be able to delete a specific input.
The basic concept of the program is to add a member to a gym, its very simple, just input the name, memberid and phone number (member Id must be inputable and not auto as it is retrieved by the data inputter fro somewhere else).
I have got the system accepting inputs but i cannot get it to show back a list of inputs.
If I use the following:
System.out.println(Karate.people[1].getInfo());
it will show the first person I have input, but then if I go back to add another person it will still only print that line at the end. When I changed the 1 to i it would not display anything apart from the default values. i is used from here:
public SportActivity(int number){
for (int i=0; i<number; i++) {
people[i] = new Person();
}
this.number = number;
}
Any assistance would be greatly appreciated, If you need to see more code then please ask, alternatively if anyone would be so kind as to help over MSN or AIM then it would be very helpful.
Kind regards,