我想判断jpasswordField的子串是否等于一个string我这样对不对:
jPasswordField1.getPassword().toString().substring(2,3).equals(s)
编译没问题,怎么运行后就不对了,高手告诉我怎么做?