04.02.2015, 20:53
You can't mix strings and integers in the same array.
You should get errors if you compile.
The first index of your array points to the line, the second index points to the phone-names, but it cannot store the prices.
You need to use an enum to pull this off, or use 2 separate arrays, one for the phonenames and another for the prices.
You should get errors if you compile.
The first index of your array points to the line, the second index points to the phone-names, but it cannot store the prices.
You need to use an enum to pull this off, or use 2 separate arrays, one for the phonenames and another for the prices.