【发布时间】:2012-09-20 06:19:37
【问题描述】:
我有一些代码,如下所示:
int batchPosition = new Integer(batchBegin);
for (batchPosition;batchPosition<=batchEnd;batchPosition++)
但是我在eclipse中得到这个错误:
Syntax error, insert "AssignmentOperator Expression" to complete ForInit.
我查看了关于这个错误的各种帖子,并在谷歌上搜索了它,但我不知道为什么这是不允许的。
【问题讨论】:
-
这也可能是因为你拼错了'batchPostion'
-
@Kiyura 原谅我的阅读障碍,我无法从我的文件中复制,所以我不得不重新编写它。
标签: java for-loop assignment-operator