Java Format Number using NumberFormat class In this Java tutorial we learn how to use the java.text.NumberFormat class to format different type of numbers in different locales in Java application.