I am trying to find the largest values of these three variables (aCounter, bCounter, cCounter) that has been calculated. Java does not like how I am putting them into the string. Thanks in advance guys!
double aCounter=0;
double bCounter=0;
double cCounter=0;
{ code to count occurrences of each character in text file }
String lines = aCounter + bCounter + cCounter;
String [] array = lines.split (" "); //splits with a space
int largestInt = Integer.MIN_VALUE;
for (String numberString : array )
{
int number = Integer.parseInt(numberString);
if (number > largestInt)
{
largestInt = number;
}
}
bw.write ( largestInt );