kaslem na to..zabil som pol dna a neviem s tym pohnut..
toto som vyprodukoval:
private void processInput() {
try {
System.out.printf("\nPlease Enter your selection: (X)Exit, (MA1)Mark, (OB2)Open... ");
String inputString = readLine();
handleInput(inputString);
}
catch (WrongFormatException ex) {
System.out.printf("%s",ex.getMessage());
}
}
private void handleInput(String input) throws WrongFormatException {....}