Table Of Comparisons Between String, Array And ArrayList
From Huben's Wiki
Line 5: | Line 5: | ||
!width="25%" | array named a | !width="25%" | array named a | ||
!width="25%" | ArrayList named l | !width="25%" | ArrayList named l | ||
− | |- style="height: | + | |- style="height:60px" |
| Declare a variable of this type. | | Declare a variable of this type. | ||
| | | | ||
Line 52: | Line 52: | ||
|- style="height:60px" | |- style="height:60px" | ||
| Can it work with for each loops? | | Can it work with for each loops? | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- style="height:60px" | ||
+ | | What does toString() [and thus System.out.print()] do? | ||
| | | | ||
| | | | ||
| | | | ||
|} | |} | ||
+ | |||
+ | |||
+ | What methods does ArrayList implement from List? | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | (end of methods) |