Add Codedump

Description (Markdown supported)
Title or filename
Language
Codepublic class WaterpoloPlayer { private int goals; private int shots; private String name; public WaterpoloPlayer(String theName, int theGoals, int theShots) { name = theName; goals = theGoals; shots = theShots; } public String toString() { return name + ": " + goals + "/" + shots; } public double getShotAverage() { return (double) (goals / shots); } }

Access