Given:
public enum USCurrency {
PENNY (1),
NICKLE(5),
DIME (10),
QUARTER(25);
private int value;
public USCurrency(int value) {
this.value = value;
}
public int getValue() {return value;}
}
public class Coin {
public static void main (String[] args) {
USCurrency usCoin =new USCurrency.DIME;
System.out.println(usCoin.getValue()):
}
}
Which two modifications enable the given code to compile? (Choose two.)
maslac
Highly Voted 3 years, 8 months agoasdfjhfgjuaDCV
Most Recent 9 months, 4 weeks agosteefaand
10 months, 3 weeks agor1muka5
1 year, 10 months ago