Underscores in Java Numbers
20 Feb 2016
Following variable shadowing and catch-less try blocks, today we explore another cool little Java thing I learned about the other day: underscores in Java numeric literals.
Unlike variable shadowing and catch-less try blocks, underscores in numeric literals makes things clearer and more readable so I encourage using them!
Read more about this handy little language feature and see more examples in the official Java documentation.