Need DecimalFormat help.
privatevoid averageButtonActionPerformed(ActionEvent e)
{
DecimalFormat numbers =new DecimalFormat("00.##");
double average = (double)total / 50;
averageField.setText(String.valueOf(average));
}
What would be the proper way to get average to display only the first two digits, rounded up? I'm really new to Java and this is confusing me.
Thanks!

