Question: l) In the Tutorial02 program, modify the static method called strings that has the following modifiers, return type and signature (name and input argument types)
l) In the Tutorial02 program, modify the static method called strings that has the following modifiers, return type and signature (name and input argument types) public static void strings() The method will access the (static) class attribute words. The method will access each string in the words array and display to the terminal (System.out) the following: Cat, is 3 letters long. Dog, is 3 letters long. Kit, it 3 letters long The longest word is KITTEN There were 39 characters in otal. For each string print the capitalized version of the word, followed by "is X letters long", where X is the length of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
