Jump to content

Error: Could not find or load main class KeepingMoreKidsQuiet


alienA2

Recommended Posts

I am getting an error message when building this project. I am using JCreator for this.Error:Error: Could not find or load main class KeepingMoreKidsQuiet Code below: import java.util.Scanner;class KeepingMoreKidsQuiet { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int gumballs; int kids; int gumballsPerKid; System.out.print(“How many gumballs? How many kids? “); gumballs = myScanner.nextInt(); kids = myScanner.nextInt(); gumballsPerKid = gumballs / kids; System.out.print(“Each kid gets “); System.out.print(gumballsPerKid); System.out.println(“ gumballs.”); } }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...