The array myCats is an 8 element array of type Kitty that has already been declared and initialized. Write the expression(s) in the box below that prints to the console the name of the fourth Kitty if its age is strictly greater than the age of the fifth Kitty, and prints the name of the fifth Kitty otherwise:
(Remember: the first element of an array is at index position 0).
My code is
int age4=myCats[3].getAge(); int age5=myCats[4].getAge(); if(age4>age5) { System.out.print(myCats[3].getName());