I have this problem where I want to identify the clients with in id. I want that Id only to be a number. Any ideas? Thanks in advance.
int id = IBIO.inputInt("Enter the clients id:");
boolean Clientexists = clientsAdm.existsClient(id) > 0;
if (Clientexists != true) {
String name = IBIO.inputString("Enter the client name:");
String surname = IBIO.inputString("Enter the client surname:");
String address = IBIO.inputString("Enter the client address:");
String phone = IBIO.inputString("Enter the client phone:");
String CreditCard = IBIO.inputString("Enter the type of card the client has: green, red or gold"); //asegurar que solo se ingrese RED, GREEN or GOLD
Client c = new Client(name, surname, address, phone, CreditCard, id);
clientsAdm.addClient(c);
} else {
IBIO.output("Error, this ID already exists.");
}
IBIO.output("Your client has been added.");
}