compsci study

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

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.

22 Terms

1
New cards

Scanner sc

Scanner sc = new Scanner(System.in);

2
New cards

String text

String text = sc.nextLine():

3
New cards

int number

int number = sc.nextInt();

4
New cards

double number

double number = sc.nextDouble();

5
New cards

Math.max(1,2)

returns max of 2 numbers (equals 2)

6
New cards

Math.squrt(4);

Returns square root (equals 2)

7
New cards

Math.pow(2,4); 

returns 2^4 (equals 16)

8
New cards

(Math.random() *(44-22) + 50);

would print out a random number ranging from 50-77

9
New cards

data type

used to initialize variables in Java (e.g. int, boolean, double, string

10
New cards

error

a problem that an application should not try to recover from

11
New cards

debugging

removing errors from computer hardware or software

12
New cards

variable

elements that is used to store data

13
New cards

String

an object that represent a sequence of characters

14
New cards

Scanner

allows the program to store inputs from the user

15
New cards

Declaration

giving your variable a value

16
New cards

else statement

only runs if none of the if statements run

17
New cards

Syntax

the set of rules that define the structure of a Java program

18
New cards

Conditions

if, if else, else,

19
New cards

compile

transforming human code to be more understandable for Java

20
New cards

Casting

TProcess of turning a random number into an integer

21
New cards

boolean

Data type that has the value true or false

22
New cards

Concatenation

process of combining two strings into one big string