import java.util.Scanner;
class Practice {
public static void main(String args[]) {
System.out.println(\"Enter the number of treats you have:\");
Scanner
Few things to note and to add to the listed answers
Scanner inputScanner = new Scanner(System.in);(...Scanner.nextInt()); is not really necessary hamsters !else if(){} is not required when if(){} has only single boolean check , just an else{ is sufficient