the method that allows you to find the capacity of an arraylist called myList
myList.size()
String a = "a"
String b = "a"
if (a==b)
System.out.println("true");
if (a.equals(b)
System.out.println("true");
true true
Classes that are grouped together and imported
What is a package
the process of moving through a loop repeatedly
What is iteration
means others may use this method
What is public
How to initialize an array called myArray with 20 ints
int myArray = new int[20]
String a = "SamSam";
how do you find the index of the second S?
Lastindexof()
What is the grandfather class of every class?
Object class
converting from one data type to another
What is casting
has the same name as the the class
What is a constructor
how do you set the value of the 3rd element of arraylist called myArraylist to 5
what is myArraylist.get(2) = 5
how do you find the size of a String called myString
myString.length()
A class that extends the implementation with additional attributes and methods
What is a subclass
this array has how many total elements int [] [] [] myArray = new int[3][3][3];
What is 27
means no return value
What is void
if arr has the elements {4,3,25,1,3} what does the following result in?
for (int i = 0; i < arr.length; i++)
arr[i] = arr[i+1];
{3,25,1,3,3}
if a array of strings is declared but not initialized...what is in every element in that array?
NULL
these contain fields and methods
What is class
What is the search that is required to be sorted before it is used.
What is binary search.
the process of creating a second method with a different number of parameters
What is overloading
what is the default capacity of an arraylist and how does it expand when that capacity is reached?
10;
doubles in size
str = "a";
System.out.println( str.compareTo("b"));
str= "b";
System.out.println("str.compareTo("a")); System.out.println(" str.compareTo("b"));
-1
1
0
a class that does not produce objects
What is abstract
in the "main" program (not console)
what is the line that indicates the main method
public static void main(String[] args)
what is it called when a method does not have a return type
Constructor