Question: In Java, write a program to count the number of characters in each name among a list of names and return the number of names

In Java, write a program to count the number of characters in each name among a list of names and return the number of names with an odd number of characters. The names are:
Mary James Bruce Mark Jasmine Fred Cecilia
An example output should read "The number of odd names is: x"

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!