Arrays/Arraylists
Strings
Classes
JAVA Language
Methods
100

the method that allows you to find the capacity of an arraylist called myList

myList.size()

100

String a = "a"

String b = "a"

if (a==b)

System.out.println("true");

if (a.equals(b)

System.out.println("true");

true true

100

Classes that are grouped together and imported

What is a package

100

the process of moving through a loop repeatedly

What is iteration

100

means others may use this method

What is public

200

How to initialize an array called myArray with 20 ints

int myArray = new int[20]

200

String a = "SamSam";

how do you find the index of the second S?

Lastindexof()

200

What is the grandfather class of every class?

Object class

200

converting from one data type to another

What is casting

200

has the same name as the the class

What is a constructor

300

how do you set the value of the 3rd element of arraylist called myArraylist to 5

what is myArraylist.get(2) = 5

300

how do you find the size of a String called myString

myString.length()

300

A class that extends the implementation with additional attributes and methods

What is a subclass

300

this array has how many total elements int [] [] [] myArray = new int[3][3][3];

What is 27

300

means no return value

What is void

400

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}

400

if a array of strings is declared but not initialized...what is in every element in that array?

NULL

400

these contain fields and methods

What is class

400

What is the search that is required to be sorted before it is used. 

What is binary search.

400

the process of creating a second method with a different number of parameters

What is overloading

500

what is the default capacity of an arraylist and how does it expand when that capacity is reached?

10;

doubles in size

500

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

500

a class that does not produce objects

What is abstract

500

in the "main" program (not console)

what is the line that indicates the main method


 public static void main(String[] args)

500

what is it called when a method does not have a return type

Constructor

M
e
n
u