Im trying to create an database that contains personal information to several clients using an java program. But im stuck and i need help.
I have created two classes: Database and Client
- My problems is as followed:
1 - Creating a method "AddUser", which can register a new "client" to the database.
2- Creating a method "RemoveUser" which makes it possible to delete a excisting client from the database.
3- Creating a method"showClientList", which will with the help of System.out.println( ) method, print out a list in the following format:
Client number______ Name
It very important that you only print out people that allready excists in the database. and not for the "empty spaces"
4 - Create a method "printOutOldest", which will print out the oldest client, by the age.
This is the foundation for the program:
public class Client
private String name;
private int clientNumber;
private int age;
public Client(String name, int clientNumber, int age)
this.name = name;
this.clientNumber = clientnumber;
this.age = age;
public class Database
private Scanner input;
private Client [ ] users;
public Database( )
input = newScanner(system.in);
users = newClient 
public void addUser( )
public void removeUser( )
public void showClientList
public public void printOutOldest( )