The next lesson creates the following object at timestamp: 8:47
DecimalFormat formatter = new DecimalFormat("#.##");
If you live in Europe or Asia, your Locale
probably uses ,
for decimals. Set it to ENGLISH
.
import java.util.Locale; DecimalFormat formatter = new DecimalFormat("#.##", new DecimalFormatSymbols(Locale.ENGLISH));
Good Luck!