Hey guys I am having some trouble when I use Scanner.UseDelimeter("\n") basically I have:
Scanner s = new Scanner(System.in); s.useDelimiter("\n"); int amount; System.out.println("Enter the amount needed: ") amount = s.nextInt();
After I enter the integer for the amount, the program crashes. I use the delimiter for the scanner as I am using scanner.NextLine() later in the program.
Thanks