123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- /**
- * Enumeration class Currency - write a description of the enum class here
- *
- * @author (your name here)
- * @version (version number or date here)
- */
- public enum Currency
- {
- USD(1.00),
-
- EUR(0.94),
-
- GBP(0.82),
-
- INR(68.32),
-
- AUD(1.35),
-
- CAD(1.32),
-
- SGD(1.43),
-
- CHF(1.01),
-
- MYR(4.47),
-
- JPY(115.84),
-
- CNY(6.92);
-
- private double rate;
-
- private Currency(double rate){
- this.rate = rate;
- }
-
- public double getRate(){
- return this.rate;
- }
- }
|