View Single Post
  #1  
Old 04-13-2009
cantidosan cantidosan is offline
Child
 
Join Date: Oct 2008
Location: Canada
Posts: 79
Rep Power: 2
cantidosan is on a distinguished road
no print statment works

Code:
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  kid");                                     
		gumballs = myScanner.nextInt();
		kids = myScanner.nextInt();
		gumballsPerKid = gumballs / kids;
		System.out.print(“Each kid gets “);
		System.out.print(gumballsPerKid);
		System.out.println(“ gumballs.”);
	}
}
when i try to build the project i get errors. I am new to this language . My print statments just dont seem to work. I am sure its a simple solution but i have no clue .
Any help would gladly be appreciated,thanks
Reply With Quote