calling main method to cause the program to run repeatedly
I am writing a multiplication program and need to call method main to reinvoke the progam to start over if user enters correct answer. I am really not understanding this at all have search internet and have not found a solution that does not give an error. Everything else in the program works as it issupposed to with no problems. I am posting code
I am just learning java and my teachers is unavailable this week. I would greatly appreciate suggetion and input so I can learn this
Thanks
package multiplication;
import java.util.Random;
import java.util.Scanner;.
public class Multiplication {
/** Creates a new instance of Multiplication */
public Multiplication() {
}
/**
*
* @param args the command line arguments
*/
public static void main(String[] args) {
for ( int counter=1; counter <=1; counter++); {
int i = 1 + (int)(Math.random() * 9);
System.out.printf("How much is %s ", i );
{ for( int counter =1; counter <= 1; counter++);
int j= 1 + (int)(Math.random() * 9);
System.out.printf( "* %s ", j );
Scanner ScannerObject = new Scanner(System.in);
System.out.println();
int s = ScannerObject.nextInt();
{ if (s == i * j)
System.out.println("Very Good ");
if
(s != i * j)
System.out.println(" Please Try Again ");
while(s != i * j)
s = ScannerObject.nextInt();
System.out.println();
System.out.println();
}
}
}
}
}

