我不断收到这个“令牌上的语法错误”(“,;预计此令牌后”错误?
问题描述:
package mathtable;
public class tablefmath {
public static void main(String[] args) {
// TODO Auto-generated method stub
final int jMax = 10;
final int iMax = 15;
int column=1, row=1;
System.out.println(" " + " | ");
for (column<=jMax; column++) {
System.out.println(column + "\t");
}
}
}
这是我的代码,我想完成一个乘法表,我知道如何做,但我有一个在我的for循环语法错误?我不断收到这个“令牌上的语法错误”(“,;预计此令牌后”错误?
答
如何
for (; column<=jMax; column++){
您在跳过;
for循环。它应该包含三个组件。
以及其部分的工作。我需要的样子这个:1 2 3 4 5 ... so o ñ,但它只是跳线 – moe
噢nvm我删除了“ln”,谢谢! – moe