I don't know how to call this method to another program.
public class ForLoopTest
{
public static void main ( String [] args)
{
int product = 1;
for ( int i = 1; i <= 10; i++ )
{
product *= i;
}
System.out.printf(" %d ", product);
}
}