Question: for Java 1 class, thanks Question 2 5 pts Write a method named method1 that accepts two parameters: a maximum number and a separator (character).

for Java 1 class, thanks Question 2 5 pts Write a methodfor Java 1 class, thanks

Question 2 5 pts Write a method named method1 that accepts two parameters: a maximum number and a separator (character). The method should print that numbers starting at 1, with each number repeated by the number and separated by the given separator. Hint: You will need an inner loop to print the correct number of numbers. For example, the call mehod1 (8,',') should produce the following output: 1,22,333,4444,55555,666666,7777777,8888888 Note that there should be no separator after the last number. Your method should work with different numbers and the separator specified. For example, the call mehod1 (4,'!') should produce the following output: 1:22!333!4444

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!