There's a known bug in Netbeans when you use System.out.print and put a scanner after. When you run the program, it does not print the System.out.print message. Instead it wait for the user input before printing the message.
Steps:
System.out.print("Search for? ");
int searching = Integer.valueOf(scanner.nextLine());
Expected: print: "Search for? " and waits for user input.
What happening: It waits for user input and after that prints: "Search for? "
There's a known bug in Netbeans when you use System.out.print and put a scanner after. When you run the program, it does not print the System.out.print message. Instead it wait for the user input before printing the message.
Steps:
Expected: print: "Search for? " and waits for user input. What happening: It waits for user input and after that prints: "Search for? "
Simple using System.out.println fixes the issue.