utility
8 tutorials tagged “utility”.
- Base64 Encoding and Decoding in JavaEncode and decode data as Base64 text with java.util.Base64: basic, URL-safe and MIME encoders, padding, and why Base64 is not encryption.
- Collections Class in JavaThe Collections class holds static helpers for collections: sort, reverse, shuffle, max, min, frequency, binarySearch and read-only or synchronized wrappers.
- NumberFormat and DecimalFormat in JavaFormat numbers as text with grouping, decimals, percentages and currencies using NumberFormat and DecimalFormat patterns, and parse them back.
- ProcessBuilder in JavaProcessBuilder starts external programs from Java, sets their directory and environment, reads their output and waits for them to finish.
- Random and SecureRandom in JavaRandom makes fast, repeatable pseudo-random numbers; SecureRandom makes unpredictable ones for security. Learn their methods, streams and seeds.
- Runtime Class in JavaThe Runtime class reports processors and memory and controls the JVM: availableProcessors, totalMemory, freeMemory, maxMemory, gc, exec and shutdown hooks.
- System Class in JavaThe System class gives access to the clock, system properties, environment variables, standard streams and array copying. Learn its main methods.
- UUID Class in JavaUUID creates 128-bit universally unique identifiers. Learn randomUUID, nameUUIDFromBytes, fromString, versions, and when to use UUIDs as IDs.