What you have is OK, just one thing missing...
you define a "users" variable, but you don't actually create an array, so the variable just contains a null pointer. You need something like
user Users = new user[99]; // creates an array with 99 slots for users
nb 1 Java convention is class names begin with a capital letter, variables begin with a lower-case letter - if you reverse this its confusing for other people
nb 2 Most people would use an ArrayList here rather than an array so they don'thave to worry about how big it is.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073