Section 1

Preview this deck

System.out.println();

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (48)

Section 1

(48 cards)

System.out.println();

Front

Displays text for the user: Ex. System.out.println("Hello") Hello

Back

nested if statements

Front

if statements inside of other if statements

Back

break

Front

the stop in code to exit a switch

Back

numberOfAnimal++;

Front

numberOfAnimals + 1 (short hand notation)

Back

/*

Front

start of a multi-line comment

Back

Binary

Front

1s and 0s. 1 is on and 0 is off

Back

*=

Front

multiplication assignment operator

Back

int

Front

integer

Back

=

Front

Assign a value ex: a=5 or apple=fruit

Back

--

Front

Decrement

Back

For Loop Example

Front

Repeats a specific number of times until a specific condition becomes false. For loop for (i = 0; i < 5; i++) { text += "The number is " + i + "<br>"; }

Back

Arrays

Front

a collection of items stored in a contiguous memory location and addressed using one or more indices

Back

char

Front

Just lets you put in one chracter

Back

for loop

Front

Used to repeat a task a set number of times

Back

>=

Front

greater than or equal to

Back

*/

Front

end of a multi-line comment

Back

Applet

Front

A small Java application that is downloaded by an ActiveX or Java-enabled web browser. Once it has been downloaded, the applet will run on the user's computer. Common applets include financial calculators and web drawing programs.

Back

while loop

Front

a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true

Back

if Statements Example

Front

Statements in programming that check to see if a Boolean expression is true, and executes a "then" statement if so, otherwise does nothing. These are often called "one-way" conditional statements. public static void main(String[ ]args){ int=17; if(age<18){ System.out.println("You are too young"); if(age>= 21){ System.out.println("You are old"); } if/else public static void main(String [ ] args){ int=17 if(age<=17){ System.out.println("You are too young") } else { System.out.println("You are old"); }

Back

Boolean

Front

A single value of either TRUE or FALSE

Back

{ curly brackets }

Front

every class is going to start and end with these; creates blocks of code

Back

protected

Front

Can only be accessed by other code in the package.

Back

//

Front

Comments

Back

+=

Front

addition assignment operator

Back

Case

Front

the possible matches of a switch statement

Back

void

Front

this method is going to do something

Back

syntax error

Front

make a mistake in our coding - such as forgetting a semicolon in the code

Back

<=

Front

less than or equal to

Back

Pseudocode

Front

An outline of the basic ideas behind how algorithms will work.

Back

The do-while statement executes while it's true

Front

do { text += "The number is " + i; i++; } while (i < 10); While statement while (i < 10) { text += "The number is " + i; i++; }

Back

||

Front

or - only one condition has to be true

Back

!=

Front

Not equal to

Back

Compiler/Interpreter

Front

translates high level language to binary code so computer can execute it -looks for errors in syntax (compile errors) -converts source code into object code

Back

;

Front

put at the end of every comment

Back

!

Front

Not

Back

==

Front

Equal sign not to be confused with = which means assign

Back

Float

Front

32-bit number with decimals.

Back

inheritance

Front

when a subclass inherits the attributes of a class

Back

string

Front

Any sequence of characters between quotation marks (ex: "hello", "42", "this is a string!").

Back

%

Front

modulus - gives the remainder of a number

Back

byte

Front

-128 to 127 (good for stuff like age)

Back

&&

Front

and - both conditions must be true

Back

Private

Front

Can only be changed by a method.

Back

Bug

Front

An error in a program that prevents the program from running as expected. More likely forgetting the ;

Back

Double

Front

64-bit number with decimals.

Back

switch statement

Front

allows multi-way branching. In many cases, using a switch statement can simplify a complex combination of if-else statements.

Back

switch default

Front

the fallback case of a switch, all switches must have one

Back

++

Front

increment (plus one)

Back