Question: need help with java code 5.37 Clone of Distinct Three Given 3 positive integers 0-9 each. Write a method distinct3 that takes three positive integer

need help with java code

need help with java code 5.37 Clone of Distinct Three Given 3positive integers 0-9 each. Write a method distinct3 that takes three positive

5.37 Clone of Distinct Three Given 3 positive integers 0-9 each. Write a method distinct3 that takes three positive integer numbers as arguments n1,n2, and n3 and prints the number of distinct numbers (1,2 or 3). Examples Input: 888 Output: 1 distinct number Input: 227 Output: 2 distinct numbers Input: 583 Output: 3 distinct numbers \begin{tabular}{l|l} LAB & 5.37.1: Clone of Distinct Three \end{tabular} 0/5 Main.java Load default template.. Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box

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!