You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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? "
Simple using System.out.println fixes the issue.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: