/* * Lab 10, Task 3 * CS 112 */ public class Lab10Task3 { /* * numDigits - takes an integer and returns the number of digits * that it has */ public static int numDigits(int val) { String valString = Integer.toString(Math.abs(val)); return valString.length(); } /* * divideByLength - takes an array of integers and returns a List * (either an ArrayList or LLList) in which all of the one-digit numbers * come first, followed by all of the two-digit numbers, followed by * all of the three-digit numbers. In the returned List, the numbers in * a given subgroup (e.g., the one-digit numbers), are in the same order * with respect to each other as they were in the original array. */ public static List divideByLength(int[] values) { } }