Restoring Always-Strict Floating-Point semantics 2 – Text blocks, Locales, Numbers & Math
The strictfp modifier can be used for classes (and is applied to nested classes as well), non-abstract methods, and interfaces. It cannot be used for variables, constructors, or abstract methods. When the strictfp modifier is used on an interface there are some headlines to point out as follows: It is…
24, Nov 2022
Customizing localized date-time formats – Text blocks, Locales, Numbers & Math
15. Customizing localized date-time formats Starting with JDK 8, we have a comprehensive date-time API containing classes such as LocalDate, LocalTime, LocalDateTime, ZonedDateTime, OffsetDateTime, and OffsetTime. We can easily format the date-time output returned by these classes via DateTimeFormatter.ofPattern(). For instance, here we format a LocalDateTime via the y-MM-dd HH:mm:ss…