Starlit Daily

📚 › Java

5. Arrays and ArrayList

ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.

An array has a fixed size and positions start at 0. For a list that grows, use ArrayList from java.util, which has add and get methods.

عرض المثال

int[] nums = {4, 8, 15};
System.out.println(nums[0]);

← العودة إلى الدورة