?? person.java
字號:
package People;
/** A general person with only a name. */
public class Person
{
/** The name of this person */
protected String name;
/** Construct a person with a name */
public Person(String n)
{
name = n;
}
/** Set the name of this person to be "n" */
public void setName(String n)
{
name = n;
}
/** Return this person's name */
public String name()
{
return name;
}
/** Return a string representation of this Person */
public String toString()
{
return name + "\n";
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -