// // MoneyTypeDemo.java // // Goal: test the user-defined money type // import java.util.Scanner; public class MoneyTypeDemo { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Input dollars and cents - "); int d = input.nextInt(); int c = input.nextInt(); MoneyType money = new MoneyType(); // money - 20D25C money.Initialize(d, c); System.out.println("money = $" + money.getDollars() + "C" + money.getCents() ); } }