Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Deposit Money

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Deposit Money

    I am trying to create simple java console application that will ask user to deposit money. Here how it should look:

    Please enter 10 TWENTY dollar____
    Please enter 10 TEN dollar_____
    Please enter 10 FIVE dollar____
    Please enter 10 ONE dollar____

    Amount Deposited: _____

    Below is the code i am trying to work with, but i dont know how to start..Please help thank you..

    import java.util.Hashtable;
    import com.widgetbank.www.Denomination;
     
     
    public class MainDeposit {
     
    	/**
    	 * @param args
    	 */
     
    	public static void main (String[] args) {
    		// TODO Auto-generated method stub
     
    		 Hashtable<Denomination, Integer> numbers = new Hashtable<Denomination, Integer>();
    		 numbers.put(Denomination.TWENTY, 10 );
    		 numbers.put(Denomination.TEN, 10);
    		 numbers.put(Denomination.FIVE,10 );
    		 numbers.put(Denomination.ONE,10);
     
    		}
     
    		}


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Deposit Money

    Also at java-forums.org.

Similar Threads

  1. Make money today as a Java freelancer
    By JavaPF in forum Paid Java Projects
    Replies: 15
    Last Post: June 12th, 2014, 03:41 AM
  2. NEED HELP! converting change given to money denominatons
    By Mrod359 in forum Object Oriented Programming
    Replies: 1
    Last Post: June 15th, 2012, 05:30 PM
  3. help with java class (deposit and withdraw problem)
    By pip0 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 10th, 2012, 05:34 PM
  4. Java deposit and Withdraw problem
    By ravsau in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 25th, 2011, 10:32 PM
  5. Java certificate of deposit calculator project
    By jimbo357 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 17th, 2011, 02:18 AM