📄 listtest.java
字号:
public class ListTest
{
public static void main(String args[])
{
DoubleList list = new DoubleList();
list.insert(10.0);
list.insert(20.0);
try
{
list.first();
double x = list.retrieveDouble();
list.next();
double y = list.retrieveDouble();
System.out.println(x + y);
}
catch (ListException le)
{
System.err.println(le);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -