When building HTML templates wiht Thymeleaf template engine, you may end up with a situation where an HTML element needs to have text coming from localization resources, but also it needs to have some additonal child elements which can't be replaced during template rendering. One of the examples …

AngularJS provides currency formatting filter which converts numbers into locale specific currency string e.g. 123.50 number converts to $123.00 for en-US locale or 123,50 € for fr-FR locale. But what to do if I would like to perform currency formatting without decimal (cent) part e.g. $123 …

In many situations you may need to use platform-dependent newline character in Java. There are several ways you can get that value, depending on the Java version you are using. System properties Java system properties always includes line.separator property which contains platform-dependent line separator (\n on UNIX and \r …