1. Engineering
  2. Computer Science
  3. using the scanner class and a while loop how would...

Question: using the scanner class and a while loop how would...

Question details
using the scanner class and a WHILE loop how would i complete the following?
public static String numbers() Using the Scanner class and a while loop, continue to process integer values from a user until they have entered a value other than an int. To keepit simple, lets assume that numbers are between 0 and 9 i. ii. Excluding any duplicates values, Calculate the sum of all unique numbers and the average value and return a String with the following format: NUMBERS: #,#, ,# SUM: ## AVG: #, where # are the respective integer values and ## are the double values.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution