Question: Do this in java. Description Write a static method called determineSize() that accepts two doubles. The method should print a message to the screen that

Do this in java. Description Write a static method called determineSize() that accepts two doubles. The method should print a message to the screen that states which number is the smallest, which is the biggest or that they are the same number.

Test the method by calling it from the main method using user input.

Sample Input 1 3.5 9.8 S

Sample Output 1 Largest = 9.8 Smallest = 3.5

Sample Input 2 3.5 3.5

Sample Output 2 Numbers are the same.

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!