It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Some features of ATS will be disabled while you continue to use an ad-blocker.
public class CoinsInAJar [
* @param args
public static void main(String args) [
System.out.println("Welcoe to this simple little application that will easily calculate the value of your coins you have."
+ "\nSimply follow through the prompts to get the total value of coins."
+ "\nJust a small tip to make things even easier. Sort your coins in different piles, pennies, nickles, dimes, and quarters, respectively.");
System.out.println("Enter the amount of pennies you have ");
Scanner userPenny = new Scanner(System.in);
pennies = userPenny.nextInt();
pennies = pennies * .01;
System.out.println("Your total value of pennies you have " + pennies);
System.out.println("Enter how many nickels you have: ");
Scanner userNickel = new Scanner(System.in);
nickel = userNickel.nextInt();
nickel = nickel * .05;
System.out.println("The total amount of nickels you have is " + nickel);
System.out.println("Please enter how many dimes you have ");
Scanner userDimes = new Scanner(System.in);
dime = (dime * .10);
System.out.println("Your total amount in dimes is " + dime);