ArrayTest.java



public class ArrayTest {

    public static void main( String[] args ) {

        int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

        int tmp;
        for( int i=0; i<a.length; i++ ) {

            tmp = a[i] * a[i];
            System.out.println( a[i] + "*" + a[i] + "=" + tmp );
        }
    }
}