求助!!!谁知道阿 !!!!
求助!!!各位大哥大姐!!小弟弟我刚刚入门学习java 今日遇到一题 不只怎末就编译不过去了!!哪位知道???谢谢!!!!import java.awt.*;
class app17-2 extends Frame
{
static app17-2 frm=new app17-2();
static List lst=new List();
public static void main (String args[ ])
{
frm.setLayout(new FlowLayout(FlowLayout.CENTER,10,25));
frm.setTitle("List class");
for(int i=0;i<=10;i++);
lst.add("List Item"+i);
lst.select(2);
frm.setSize(200,150);
frm.add(lst);
frm.setBackground(Color.yellow);
frm.setVisible(true);
System.out.println("lst.getRows()="+lst.getRows());
System.out.println("let.getItemCout()="+lst.getItemCount());
}
}
编译后出现的是:app17-2.java:2:'{'expected class appp17-2 extends Fram
app17-2.java:20:'}'expected}
2 errors