public class aaa { // here
public static void main(String args[])
{
aaa ss=new aaa();
String msg="54353465ghujj";
String signed="dfsgdfsy54654";
String pubKey="fdsgdfh5473gdh";
ss.verify(msg,signed,pubKey)
}
public verify(String msg,String signed,String pubKey/*here*/)
{
……
}
}
public static void main(String args[])
{
aaa ss=new aaa();
String msg="54353465ghujj";
String signed="dfsgdfsy54654";
String pubKey="fdsgdfh5473gdh";
ss.verify(msg,signed,pubKey)
}
public verify(String msg,String signed,String pubKey/*here*/)
{
……
}
}
public static void main(String args[])
{
aaa ss=new aaa();
String msg="54353465ghujj";
String signed="dfsgdfsy54654";
String pubKey="fdsgdfh5473gdh";
ss.verify(msg,signed,pubKey)
}
public verify(String msg,String signed,pubKey)
{
……
}
}
你掉了两个 {}啊
{
……
}
pubKey是什么?String 吗?需要申明的
Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. 我不太明白,什么叫这个类不再是那个方法的定义?什么叫这个类的定义有一个不相容的转换?
public class aaa
{
public static void main(String args[])
{
aaa ss=new aaa();
String msg="54353465ghujj";
String signed="dfsgdfsy54654";
String pubKey="fdsgdfh5473gdh";
ss.verify(msg,signed,pubKey)
}
public verify(String msg,String signed,String pubKey)
{
……
}
}
第二,应该是public void verify(String msg,String signed,String pubKey)