Create a java application that will ask you a math addition question. Use an int method called sum to calculate and return the answer. When
you correctly enter the answer on the keyboard, your program tell you "You are correct!" or "You are wrong."
18.
Create an int array using an initializer list, display the elements in
the array, display the number of elements in the array (using the java
way), and the total of the elements.
19.
Create a java class for a fish. Add 3 attributes (including the types). Use comments to describe the purpose of and suitable values for the attributes. Give the prototypes (the header, not the body) for a constructor method, a "set" method, a "get" method, and a method that will make the fish do an action. Use comments to describe the purpose of each method and any parameter listed.
20.
Create a String array with 3 elements. Create a loop to enter in the the values for the array using keyboard entry. Display all of the items entered using another loop. This loop should print the Strings in ALL CAPITAL LETTERS. e.g.
Item Value
0 DOG
1 CAT
2 BIRD