package defaultPackage;

public class TryArrays {

	public static void main(String[] args) {
		int[] numbers = new int[5];
		double[] squares = new double[5];
		for (int i = 0; i < numbers.length; i++)
		{
			numbers[i] = i + 1;
			squares[i] = Math.pow(i + 1, 2);
		}
		for (int i = 0; i < 5; i++)
		{
			System.out.println("number: " + numbers[i] + " square: " + squares[i]);
		}
	}

}

@@ -152,16 +152,52 @@
 ble%5B5%5D;%0A
+%09%09int%5B%5D smallPrimes = %7B2, 3, 5, 7%7D;%0A
 %09%09for (i
@@ -411,14 +411,215 @@
 %5D);%0A%09%09%7D%0A
+%09%09%0A%09%09for (int number: numbers)%0A%09%09%7B%0A%09%09%09System.out.println(%22number using foreach: %22 + number);%0A%09%09%7D%0A%09%09%0A%09%09for (int prime: smallPrimes)%0A%09%09%7B%0A%09%09%09System.out.println(%22small prime using foreach: %22 + prime);%0A%09%09%7D%0A
 %09%7D%0A%0A%7D%0A

Create array with shorthand notation