Question: This time let's write a public static method in class Main that takes two integer inputs and returns their division. 1. Call your method integerDivision.

This time let's write a public static method in class Main that takes two integer inputs and returns their division.

1. Call your method integerDivision. (Remember lower camel case.)

2. Make it public static.

3. Give it an int return value and two int parameters.

4. Write the method so that it divides the first parameter by the second and returns the result.

For instance if the input arguments are 100 and 3, the returned value will be 33 = (100/3) in integer division. The starter code will call your method from main with two inputs from the keyboard.

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!