Tagged articles

DecimalFormat

2 articles · Page 1 of 1
Lisa Notes
Lisa Notes
Jun 25, 2026 · Fundamentals

Java Basics: Numbers, Characters, and String Handling – Day 53 Learning Notes

This tutorial walks through Java's core numeric and character utilities, covering number wrapper classes and autoboxing/unboxing, the Number hierarchy, formatted output with printf/format, DecimalFormat patterns, and the Math class’s constants and methods for arithmetic, logarithmic, trigonometric, and random number generation, all illustrated with concrete code examples.

DecimalFormatMathNumber Wrapper
0 likes · 15 min read
Java Basics: Numbers, Characters, and String Handling – Day 53 Learning Notes
Cognitive Technology Team
Cognitive Technology Team
Jul 5, 2022 · Backend Development

Avoiding Unexpected Comma Formatting of Large Integers with MessageFormat in MyBatis SQL Generation

When using MessageFormat to inject integer parameters into dynamically generated MyBatis SQL, large numbers are automatically formatted with commas (e.g., 10000 becomes 10,000), which can break SQL statements, and the article explains why this happens and how to prevent it by converting numbers to strings before formatting.

DecimalFormatIntegerFormattingMessageFormat
0 likes · 3 min read
Avoiding Unexpected Comma Formatting of Large Integers with MessageFormat in MyBatis SQL Generation