📄 main.java
字号:
import java.util.*;/** Part of a main program using Shape objects */public class Main { Collection allShapes; // created in a Constructor, not shown /** Iterate over all the Shapes, getting their areas */ public double totalAreas() { Iterator it = allShapes.iterator(); double total = 0.0; while (it.hasNext()) { Shape s = (Shape)it.next(); total += s.computeArea(); } return total; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -