DATA STRUCTURE AND ALGORITHM DAY 2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

Type casting

converting a varlable from one data type to another.

2
New cards

int to String

String age = String.value Of(myAge);

3
New cards

String to Int

Integer.parselnt("123”);

4
New cards

Object to String

obj.toString();

5
New cards

Int to Double (implicit)

double num1 = 123;

6
New cards

int to float (implicit)

float num1 = 123;

7
New cards

int to double

double myDouble = (double) myInt;

8
New cards

int to float (implicit)

float myFloat = myInt;

9
New cards

double to int (explicit)

int myInt = (int) myDouble;

10
New cards

float to int (explicit)

int myInt = (int) myFloat;

11
New cards

Array

FIXED SIZED CONTAINER

12
New cards

ArrayList

RESIZABLE ARRAY FROM JAVA. UTIL

13
New cards

Linked List

Double linked list

14
New cards

Stack

Last In First Out (LIFO)

15
New cards

Queue

First in First Out (FIFO)

16
New cards

Hash Set

UNORDERED COLLECTION OF UNIQUE ELEMENTS

17
New cards

Treeset

SORTED TYPE OF HASH SET

18
New cards

Hashmap

KEY - VALUE PAIR FOR FAST LOOK UP

19
New cards

Treemap

Sorted Key-value Pair

20
New cards

Primitive

Data type that cant use attribute

21
New cards

Non Primitive

Data type that you can use a attribute