?? timekeeper.java
字號:
public class TimeKeeper{ public void TimeKeeper(int min, int sec)//a class to keep track of the total seconds and minuntes the player has used to get to a level { if(sec + seconds <=60) { minutes+=min; seconds=sec+seconds; } else { minutes+=min; minutes+=1*((sec+seconds)/60); seconds=(sec+seconds)%60; } }//end TimeKeeper public int getMinutes() { return minutes; } public int getSeconds() { return seconds; } int minutes=0; int seconds=0;}//end class
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -