📄 tree.java
字号:
import java.util.*;
class Tree
{ int height;
Tree() { prt("Planting a seedling"); height = 0; }
Tree(int i)
{ prt("Creating new Tree that is "+ i + " feet tall");
height = i;
}
void info() { prt("Tree is " + height + " feet tall"); }
void info(String s)
{ prt(s + ": Tree is " + height + " feet tall"); }
static void prt(String s) { System.out.println(s); }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -