Devlog - 2025εΉ΄09ζ15ζ₯
π What I Did
- Learned Arrays.
π§ What I Learned
Arrays
- Collections of elements of the same type stored in contiguous memory.
- Fixed size (cannot grow/shrink once created).
Enhanced For-Loops
- Also called "for-each loop".
- Introduced in Java 5.
- Itβs a shorter, cleaner way to loop through arrays or collections.
for (datatype variable : collection) {
// use variable
}
datatypeβ type of elements (e.g., int, String, double)variableβ temporary name for each elementcollectionβ array or a class implementing Iterable (like ArrayList, HashSet)
π₯ Whatβs Next
- Further practicing arrays.
- Strings
- Some coding related to the above topics.