Question: Write a method called letterNum that receives a String and return the String even if the number of letter for the input parameter are even

Write a method called letterNum that receives a String and return the String "even" if the number of letter for the input parameter are even and "odd" otherwise.
Call your method from the main method with some String of your choice as input argument. The result should be printed out accordingly.
*Provide java doc style comments for your code.
Submission: Submit the java file with a class name called MyString.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!