D
Don
I don't know what you mean by "other" uses for Average. The Average
declared in the quoted code has no uses at all, other than the extremely
suspicious assignment to itself.
The class Ch7Ex4 also has member fields called "average" and "Average",
but I don't see any use of DecimalFormat that gets anywhere near either
of those.
Patricia- Hide quoted text -
- Show quoted text -
And... I'm sorry about the "Average=Average;" part, I meant to use
that to try out "f" with Average=Average f; or something like that,
when it came up with an error I just erased the "f" and forgot about
the "Average=Average;"
Also, I meant to use have "doc.insertString(doc.getLength(), "\nThe
average of the grades is " + Average, textPane.getStyle("regular"));"
instead of the "doc.insertString(doc.getLength(), "\nThe average of
the grades is " + average, textPane.getStyle("regular"));" which I
believe I posted.