1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Type casting
converting a varlable from one data type to another.
int to String
String age = String.value Of(myAge);
String to Int
Integer.parselnt("123”);
Object to String
obj.toString();
Int to Double (implicit)
double num1 = 123;
int to float (implicit)
float num1 = 123;
int to double
double myDouble = (double) myInt;
int to float (implicit)
float myFloat = myInt;
double to int (explicit)
int myInt = (int) myDouble;
float to int (explicit)
int myInt = (int) myFloat;
Array
FIXED SIZED CONTAINER
ArrayList
RESIZABLE ARRAY FROM JAVA. UTIL
Linked List
Double linked list
Stack
Last In First Out (LIFO)
Queue
First in First Out (FIFO)
Hash Set
UNORDERED COLLECTION OF UNIQUE ELEMENTS
Treeset
SORTED TYPE OF HASH SET
Hashmap
KEY - VALUE PAIR FOR FAST LOOK UP
Treemap
Sorted Key-value Pair
Primitive
Data type that cant use attribute
Non Primitive
Data type that you can use a attribute