📄 words.java
字号:
//********************************************************************
// Words.java Author: Lewis/Loftus
//
// Demonstrates the use of an inherited method.
//********************************************************************
public class Words
{
//-----------------------------------------------------------------
// Instantiates a derived class and invokes its inherited and
// local methods.
//-----------------------------------------------------------------
public static void main (String[] args)
{
Dictionary webster = new Dictionary();
System.out.println ("Number of pages: " + webster.getPages());
System.out.println ("Number of definitions: " +
webster.getDefinitions());
System.out.println ("Definitions per page: " +
webster.computeRatio());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -