继续收到错误插入变量声明以在我的Java程序上完成VariableDeclaration

保持错误,我是Java的新手。 我不断收到有关变量声明的错误。 建议吗?

public class Trying { public static void main(String[] args) { nestedFor; int i =0; } public static void nestedFor(int) { int i = 0; int h =0; for (int = i; i<=4; i++) for (int = h; i <=6; h++) System.out.println ("Testing 1,2,3"); } } 

如果您的意思是显示“测试1,2,3”5×7 = 35次,您的代码应如下所示:

  public class Trying { public static void main(String[] args) { nestedFor(); } public static void nestedFor() { int i = 0; int h =0; for (i=0; i<=4; i++) for (h=0; h <=6; h++) System.out.println ("Testing 1,2,3"); } }