Dumplin’
January 29, 2020
Karl Marx
January 29, 2020
Show all

Programming Exercise 15

Create a class called GermanToEnglishDictionary and a HashMap from String to String in that class called content. You will need to import java.util.HashMap. Create a no-args constructor that creates the content eld as an empty map.
Create an enumerated type (enum) called Coin that can take the values ONE PENNY, TWO PENCE, FIVE PENCE, TEN PENCE, TWENTY PENCE, FIFTY PENCE, ONE POUND and TWO POUNDS.

Leave a Reply

Your email address will not be published. Required fields are marked *