Question: Could you please write a basic java program for question 4. Thanks Write a method that is passed 3 decimal numbers and returns the largest
Could you please write a basic java program for question 4. Thanks

Write a method that is passed 3 decimal numbers and returns the largest of the 3 inputs. For example, Please enter 3 numbers: 4 9 2.5 The largest number is 9 2. Write a method that is passed 3 strings and sorts them lexicographically. For example, Enter three strings: Charlie Able Baker Able Baker Charlie 3. Write a method that is passed in two military times (i.e., 8000 - 2359) and prints what the time differnce is between the two times: 0700 1530 The time difference is 8 hours and 30 minutes. 2351 0101 The time difference is 1 hour 10 minutes 4. Write a method that is passed 2 decimal numbers and returns whether they are the same up to two decimal places. For example, Enter two decimal numbers: 2.0 1.99998 They are the same up to two decimal places Enter two decimal numbers: 2.0 1.98999 They are not the same up to two decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
