System.out.println("nums:"); String values = myScanner.nextLine(); int count = 0; int sum = 0; for (int i = 0; i < values.length(); i++)