-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPairisPlayer.ctxt
11 lines (11 loc) · 1.13 KB
/
PairisPlayer.ctxt
1
2
3
4
5
6
7
8
9
10
11
#BlueJ class context
comment0.params=playerName\ stringYear1\ stringYear2\ stringYear3
comment0.target=PairisPlayer(java.lang.String,\ java.lang.String,\ java.lang.String,\ java.lang.String)
comment0.text=\r\n\ Default\ Constructor\ to\ create\ an\ object\ of\ the\ PairisPlayer\ class.\r\n\ All\ objects\ of\ this\ class\ have\ the\ planet\ name\ "Pairis"\ and\ the\ numberBase\ of\ 2\r\n\ (as\ you\ can\ see\ in\ the\ constructor).\ \ The\ constructor\ passes\ its\ arguments\r\n\ to\ its\ superclass\ to\ instantiate\ the\ object.\r\n
comment1.params=
comment1.target=void\ toDecimal()
comment1.text=\r\n\ Method\ that\ changes\ the\ player's\ binary\ values\ (base\ 2)\ for\ home\ runs\ into\ decimal\ (base\ 10)\ values\r\n\ using\ the\ "parseInt()"\ method\ of\ the\ Integer\ class.\r\n
comment2.params=playerList
comment2.target=void\ printResults(java.util.List)
comment2.text=\r\n\ This\ method\ prints\ out\ the\ results\ for\ a\ player\ from\ Pairis\ in\ base\ 2\ (Binary)\ by\ using\ a\ for-each\ loop.\r\n\ @param\ playerList\ The\ list\ of\ players\ sorted\ by\ their\ average\ number\ of\ home\ runs\ (highest\ to\ lowest).\r\n
numComments=3