有两道题大家帮忙! 1.Create a class named SumOfArgs that will print out the sum of all integer arguments found on the command line. Anything that is not an integer should be skipped (should not contribute to the sum). Your progam should print out only the sum (nothing else!). No error messages can be printed out (no matter what the command line args look like). Examples of what your class should do when run:
2.Create a class named Substring that will expect the first command line argument to be a string, and the second two command line arguments to be integers, the first will be used as an index and the second as a length. The output should be the subtring of string starting at the index and of the specified length. Examples: