Methods, arrays, strings and text blocks

Arrays come first in this part: the declaration, the initialiser and the default values, the algorithms written by hand, then Arrays.sort, binarySearch and copyOf, and two-dimensional grids, ragged ones included. Text follows: String and its methods, immutability, StringBuilder against the loop that is quadratic with +, String.format and printf, text blocks, splitting and joining. Then the wrapper classes and autoboxing, Math with BigInteger and BigDecimal and the cent a double loses, args with the exit status the shell sees, arrays of objects with their equals, and a capstone that counts the words of a text.

020 Arrays declaration, new, an initialiser, length, iteration, default values Open 021 Array algorithms by hand max, min, sum, average, reverse, linear search Open 022 Sorting and Arrays Arrays.sort, binarySearch, copyOf, fill, toString, deepToString Open 023 Two-dimensional arrays a grid, ragged arrays, nested iteration, a transposed matrix Open 024 String and its methods immutability, length, charAt, substring, indexOf, equals, compareTo, strip Open 025 StringBuilder append, insert, reverse, toString, and the loop that is quadratic with + Open 026 String.format and printf %s, %d, %f, %n, width, precision, %,d, a text table Open 027 Text blocks """, the closing delimiter, indentation, \s, \, a JSON string written as a text block Open 028 Splitting, joining and replacing split, join, replace, repeat, toUpperCase, matches Open 029 Wrapper classes and autoboxing Integer, parseInt, valueOf, the cache, null unboxing and the NullPointerException it causes Open 030 Math, BigInteger and BigDecimal Math methods, a long that overflows, BigInteger, BigDecimal and the cent a double loses Open 031 args, exit codes and System.exit the args array, a usage message, System.exit(2), the status the shell sees Open 032 Arrays of objects and equals an array of a class, null elements, a loop over it, the equals a comparison needs Open 033 Capstone: counting words a text, split, a Map, a sorted report, the same program with arrays Open

Lessons