Question: Write a Java class called Program. The class must be accessible to everyone. The class must be a Java program that uses command line arguments.

Write a Java class called Program. The class must be accessible to everyone. The class must be a Java program that uses command line arguments. The program will print (to the terminal) the number of command line arguments passed to the program at execution time. It will also print each command line argument, one per line, in the reverse order that they appear in args. Any command line argument that is a word (only contains letters) must be printed capitalized (i.e., the first letter in uppercase and all the rest in lowercase). Note that ... in the code below denotes valid code that is not shown. Also, note that you must use the isWord method from the helper class WordCheck in your solution.

public class WordCheck{

public static boolean isWord(String s){

// returns true if s is made up of letters only,

// returns false otherwise.

}

}

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 Databases Questions!