1. Engineering
  2. Computer Science
  3. write a java class called program the class must be...

Question: write a java class called program the class must be...

Question details

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.

  }

}

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution