Question: Someone please help me! I keep getting lost! Please write a class MethodTest2 which contains the following methods: - A method count100() which prints every

Someone please help me! I keep getting lost!

Please write a class MethodTest2 which contains the following methods: - A method count100() which prints every number 1 to 100 to the screen, each number on a different line. - A method strmult() which takes two string parameters, each containing the English word for a number between zero and nine, and returns their product as an integer. For instance, strmult("five","six") would return the integer 30. - A method strappend() which takes two string parameters and returns a string containing the first parameter, followed by a dash, followed by the second parameter. For instance, strappend("tree","house") would return the string "tree-house". As before, you should declare each of these methods as public and static, and you should declare the MethodTest class public as well. You can write whatever you want in your main method as long as it compiles, since I will not be using your main method when grading. I suggest you use your main method to test your methods and make sure they work correctly. Name of program should be: MethodTest2

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!