Character的问题
跳蚤图 2006-11-30 10:17:54 public static void main(String[] args) {
String wenFa=JOptionPane.showInputDialog(null, "Input leftItem", "input", JOptionPane.QUESTION_MESSAGE);
ArrayList[]listFirst=new ArrayList[wenFa.length()];
ArrayList<String> listItem=new ArrayList<String>();
for(int i=0;i<wenFa.length();i++){
listFirst[i]=new ArrayList();
Product product=new Product();
Character character=new Character(product.leftItem(wenFa));
//分成四步求FIRST集
//1.如果 X 属于VT 则FIREST(X)={X}
if(character.isLowerCase(product.leftItem(wenFa))){
listFirst[i].add(product.leftItem(wenFa));
}
最后两行有这样的错误,he static method isLowerCase(char) from the type Character should be accessed in a static way
为什么,怎么解决?