有人可以帮我解决这个错误吗?
当我删除 () 时,我有 100 个错误...
无法回复我自己的帖子需要等待 7 小时...
我仍然遇到错误,有人可以通过 teamviewer 帮助我吗?
long TimeTNL = ()(Skills.getXPToNextLevel("Mining") * 3600000.0D / XPH);
^
1 个错误
<小时/>this.runTime = System.currentTimeMillis();
timeRan = this.runTime - this.startTime;
int XPH = (int)(this.gainedXP * 3600000.0D / timeRan);
long TimeTNL = ()(Skills.getXPToNextLevel("Mining") * 3600000.0D / XPH);
if (XPH > 0) {
this.TNLhours = (TimeTNL / 3600000L);
TimeTNL -= this.TNLhours * 3600000L;
this.TNLminutes = (TimeTNL / 60000L);
TimeTNL -= this.TNLminutes * 60000L;
this.TNLseconds = (TimeTNL / 1000L);
TimeTNL -= this.TNLseconds * 1000L;
}
最佳答案
这不是 Javascript,这是 Java! Java 到 Javascript 就像高脚椅到电椅!
只需删除()
- 为什么那些在那里? :)
关于java - 收到表达式错误的非法开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19058622/