Specialized Classes
About
BigInteger
BigInteger big1 = new BigInteger("9876543210123456789");
BigInteger big2 = new BigInteger("1234567890123456789");
BigInteger result = big1.add(big2);
System.out.println("Result: " + result);BigDecimal
BigDecimal price = new BigDecimal("19.99");
BigDecimal quantity = new BigDecimal("3");
BigDecimal total = price.multiply(quantity).setScale(2, RoundingMode.HALF_UP);
System.out.println("Total: " + total);Optional
Math
Date and Time API (java.time)
UUID
Scanner
Formatter
Properties
Regex (Pattern and Matcher)
Atomic Classes
Random
Last updated