Ok so I took what I believe to be the soultion and did this
JOptionPane.showMessageDialog( null, "Class Grades Counted " + gradeCounter
+ \n "Class Average" + total/gradeCounter,
"Class Average Totals",
When I do this the eclipse environment tells me "Sytax error on tokens, delete these tokens", What did i do wrong?