Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
20 Cards in this Set
- Front
- Back
List<E> boolean .add(E obj)
|
Adds the element obj to the end of the List. Returns true.
|
|
List int .size()
|
returns the integer size of the List
|
|
List E .get(int index)
|
Returns the object of type E located at index index.
|
|
List E set(int index, E element)
|
Replaces item at listed index with element. Returns the object of type E that used to be at index.
|
|
List void .add(int index, E element)
|
Inserts element at index index. All elements after index have their index incremented
|
|
List E.remove(int index)
|
Removes and returns the element at index index. Elements with indexes greater than index have their indeces decremented. List size is decremented.
|
|
What is List<E>
|
An Interface
|
|
What class most notably implements List<E>
|
ArrayList<E>
|
|
int value of strings
'fish".compareTo("fish") |
0
|
|
int value of Strings apple.compareTo(banana)
|
-x
|
|
int value of Strings
salmon.compareTo(cod) |
+x
|
|
1+4=?
|
5
|
|
"1"+"4" =
|
14
|
|
"fish" + 455 = ?
|
fish455
|
|
What is the name of the operator used in 1+4=5?
|
addition
|
|
What is the name of the operator used in "1" + "4" = "14"
|
concatenation
|
|
String int .length() does?
|
Returns the length of the String.
|
|
String String .substring(int index) does?
|
Returns a string that is a substring of the original. It begins at index, and goes until the end of hte string! This is often more efficient than using .substring(startindex, endindex)
|
|
String String .substring( int startindex, int endindex)
|
Takes a substring from startindex to endindex-1, so while it takes the character at startindex, endindex is excluded.
|
|
String int indexOf(String str)
|
Returns the index of the beginning of the first occurrance of str in String. If str is not present, returns -1.
|