?? state.java
字號:
/*
* Created on Oct 23, 2004
*/
import java.awt.Point;
public class State extends Point
{
public State(int x, int y) {
this.x = x;
this.y = y;
}
/* used for debugging only...
*/
void printState()
{
System.out.print("State=<"+x+","+y+">");
}
/*copies the newState object in to this state
*/
void copy(State newState)
{
x = newState.x;
y = newState.y;
}
public boolean equals(Object Obj)
{
State st = (State)Obj;
return (x == st.x && y==st.y);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -