public enum CostData {
IMPRESSIONS("Impressions", "Impressions"),
CLICKS("Clicks", "Clicks"),
COST("Expenditure", "Cost"),
CONVERSION("Conversion", "Conversions");
private String value1;
private String value2;
private CostData(String value1, String value2) {
this.value1 = value1;
this.value2 = value2;
}
public String getValue1() {
return value1;
}
public String getValue2() {
return value2;
}
}
I need to create an array with Impressions, Clicks, Expenditure and Conversion, the first element in each enum element, another array with the second set in each enum element. Any suggestions?