hi.i realy need help am a new beginner in java.so i have been trying to do a code in java that returns the largest counter,refering to my libraries.so i was trying to invoke the method comparTo,so i dont know how to use it to compare all counter arrays so that i could the largest one
for( i=1;i<n;i++)
{
if(arr[i].compareTo(arr[i+1])>0)
{
System.out.println(arr[i] + "largst count");
}