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]);

← कोर्स पर वापस