为什么说我getString()未定义?

来源:互联网 发布:vocaloid3ae版软件下载 编辑:程序博客网 时间:2024/04/30 06:41

public void commandAction(Command c,Displayable d)
{

int a=lst.getSelectedIndex();
String str;
str=getString(a);
lst.setTitle(str);

}
提示说我getString函数有错:
The method getString(int) is undefined for the type LC01
LC01是我的类名……

但是我是跟着视频一起做的,为什么视频上好好的,我的就错了呢???
郁闷!!!
帮我解答下,谢谢!
0 0
原创粉丝点击