Title: Pertemuan 5: Array_Latian Soal/ 21 April 2025
Course: 2024-2| SIF21419|Pemrograman Berorientasi Obyek| 4 SKS|4PT1| Senin, 07.30 - 10.30| Rio Kurniawan, M.Cs

Array-Data List

public class Main {

    public static void main(String[] args)

    {

        // initializing array

        int[] arr = { 1, 2, 3, 4, 5 };

        // size of array

        int n = arr.length;

        // traversing array

        for (int i = 0; i < n; i++)

            System.out.print(arr[i] + " ");

    }

}