Main Menu Bar

header ads

ArrayList LISTNUMBER LISTSTRING AND LISTMAP IN SKETCHWARE

Sketchware for beginners lesson 4

ArrayList in Java (List string, List number and List Map in sketchware)


Arrays in sketchware

In sketchware List variables are actually ArrayLists, so first we need to study about ArrayList.
Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.

 Source : W3SCHOOLS


we are not using Array itself we are using ArrayList

The ArrayList class is a resizable array, which can be found in the java.util package.




The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified (if you want to add or remove elements to/from an array, you have to create a new one). While elements can be added and removed from an ArrayList whenever you want. The syntax is also slightly different.

Source : w3schools



 

Arrays in Java

Listmap in the sketchware


Post a Comment

0 Comments