[英]ABC.methodname(); as Syntax error on token “methodname”, Identifier expected after this token
ABC.methodname();
//ABC.jumpDepositsRecords();
private static final String AutomaticDeposit_TransferWebServiceClient =
You are calling a method in the section where attributes of a class are defined... There's a few options here depending on what you are required to do. 您正在定义类属性的部分中调用方法。根据您需要执行的操作,这里有一些选项。
You have a class ABC
with a method methodname()
, and you want to call that method from another class. 您有一个带有方法
methodname()
的类ABC
,并且您想从另一个类中调用该方法。
So, you have to do the functions like object initialisation inside the main method, like: 因此,您必须在main方法内部执行诸如对象初始化之类的功能,例如:
public static void main(String[] args) {
ABC method = new ABC();
}
Look through your code for your com.sports.jump.laptop.batch.dao.PlayerCatchBallVO
class again. 再次通过代码查找
com.sports.jump.laptop.batch.dao.PlayerCatchBallVO
类。 Are you sure that methodName
is a function, not a field? 您确定
methodName
是函数而不是字段吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.