• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back
The name of a variable or constant
Identifier
A word for "joining together"
concatenate
A task
method
An object
class
A non­executable statement in a program (used for documentation only)
comment
A program must contain this or nothing will happen when it executes (runs)
main method
The assignment operator
=
A word or phrase contained in double quotations is called this
string literal
3 types of errors
1. Syntax
2. Runtime
3. Logic
List the 5 mathematical operators
+,-,*,/,%
What two things do you have to tell the compiler about all variables?
the identifier and data type
what are the 5 data types
int, char, boolean, double, String
All java statements are terminated with a _________________.
;
An open ______________ must have a closing ____________.
(,),",",{,}
____________ is the newline character.
\n
____________ is the tab character.
\t
__________ is used for a single line comment.
//
What key word turns a variable into a constant?
final
Every program you write automatically imports the _________ package
java.lang
You need to write an ______ __________ in your program when you want to use classes from packages other than java.lang
Import Statement
What class do you need to use for keyboard input
Scanner class
What is the import statement for keyboard input
import java.util.Scanner;
Allow you to access the methods of a particular class
Object Variable
How do you create an object variable in the scanner class?
Scanner scan = new Scanner(System.in);
What are the 5 methods of the scanner class?
Methods of the Scanner Class: 1. nextInt() ­ used to read in integers
2. nextDouble() ­ used to read in decimal values
3. nextBoolean() ­ used to read in a boolean value (true or false) 4. next() ­ used to read in a single word or letter (String)
5. nextLine() ­ used to read in a word or phrase (String)