question 1 : public boolean allDifferent (int num1, int num2, int nmum3)
takes three integer and returns a boolean value of true indicating that the three arguments are all different, otherwise returns false. Count it as a question asked.
question 2: public String middle(String str)
Finds the middle substring of a string. If the string length is even it prints two characters else prints one character. Count it as a question asked.
Output result: question 1: Test Run 1: Enter first number: 1 Enter first number: 2 Enter first number: 3... View the full answer