alienA2 Posted March 7, 2012 Share Posted March 7, 2012 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 More sharing options...
boen_robot Posted March 7, 2012 Share Posted March 7, 2012 I think it's supposed to be "Main", with a capital "M". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.