Question: IN JAVA Problem 1: Write the implementation for following methods: a. boolean a11 thesame (int x, int y, int z), returning true if the arguments
IN JAVA
Problem 1: Write the implementation for following methods: a. boolean a11 thesame (int x, int y, int z), returning true if the arguments are all the same b. boolean alldi fferent (int x, int y, int z), returning true if the arguments are all different C. boolean sorted (int x, int y, int z ), returning true if the arguments are sorted, with the smallest one coming first In the main method of your program test all three methods by prompting the user to enter values for x,y&z. Pass the values as parameters during the method call of all three methods. Also print the return values of each method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
