utility-classes
3 tutorials tagged “utility-classes”.
- Arrays ClassThe java.util.Arrays toolbox: toString, sort, binarySearch, fill, equals, copyOf and asList, with the traps in binarySearch and asList explained.
- Math ClassThe Math class toolbox: abs, max, pow, sqrt, round, floor, ceil, PI, floorDiv, floorMod and the exact methods, with the surprises in each.
- Generating Random NumbersRandom numbers in Java: Math.random, Random with seeds, ThreadLocalRandom for ranges, SecureRandom for OTPs, and getting a range right.