I have created a subclass to create the type: "Costs" which consists of the String: description and int: value,
with this I have created an array of type Costs where I insert data in the format: ("Rent", 400) etc
I now need to (for my college class) generate a percentage for each of the values in the array, but I can't work out how to retrieve just the integer
value for each entry in the array, the subclass I made has getValue methods but I can't work out how to retrieve only the int value element of each entry in the array
Any help would be hugely appreciated! Pulling my hair out here !