public class MoneyDemo
1: //MoneyDemo.java
2:
3: public class MoneyDemo
4: {
5: public static void main(String[] args)
6: {
7: Money start = new Money();
8: Money goal = new Money();
9: System.out.println("Enter your current savings:");
10: start.readInput();
11:
12: goal = start.times(2);
13: System.out.print("If you double that, you will have ");
14: goal.writeOutput();
15:
16: System.out.println(", or better yet:");
17: goal = start.add(goal);
18: System.out.println("If you triple that original amount, you will have:");
19: goal.writeOutput();
20:
21: System.out.println();
22: System.out.println("Remember: A penny saved");
23: System.out.println("is a penny earned.");
24: }
25: }