ජාවා with නානා(part 10)

Share

    ARRAY’S

java

1) Ordered Collection of primitives or objects.
2) Save a list of variables of same data type.
3) The array it self is an object.
4) Array has 0 based indexes.
5) To create an array we should
# declare
# construct
# Initialize

java

When you are constructing the array, you can put any number inside the square bracket and it will become the array size.

java

අපිට ඔය කොටස් 3නම එක පාරම කරලා දාන්නත් පුලුවන් එක ලයින් එකෙන්.ඒකට අපි කියන්නේ anonymous array initialization කියලා.

java

we never put a number inside the square bracket when we declare the variable.we keep it empty to show that it is an array.

java

දැනට පාවිච්චි නොකරන දුර්ලබ විඩිහක් තමයි මේක(normally we don’t use this now)

java

අදට මම මෙතනින් නවත්වනවා.අලුත් ටියුටොරියල් එකෙන් අද හෙටම හමුවෙමු.
මොකක් හරි අවුලක් තියනවනම්
e-mail- charith_shaddow@yahoo.com
Facebook- charith shadow Winchester (naana)
දෙකෙන් එකකට message එකක් දාන්න.