Jump to content
Sign in to follow this  
alienA2

Error: Could not find or load main class KeepingMoreKidsQuiet

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.”); } }

Share this post


Link to post
Share on other sites

I think it's supposed to be "Main", with a capital "M".

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...