#include #include #include #include #include using namespace std; int main() { Arrays.sort(types); int currentTotal = 0; int highestTotal = 0; int current = types[0]; int highest = types[0]; for(int i = 0; i highestTotal){ highestTotal = currentTotal; highest = types[i-1]; } currentTotal = 1; } } System.out.print(highest); }