1/39
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
program
A sequence of instructions that specifies how to perform a computation
Method
named sequence of statements
class
collection of methods
constant variables
variable that doesnt change
package
collection of related classes
modulus operator
divides two numbers and computes the remainder
recursive method
method that invokes itself
value method
methods that return values
return type
type of return values
return value
value thats returned inside a method
arrays
sequence of values
elements
values in a array
Index of an array
an integer variable or value used to indicate an elements of an array
traversal
looping through the elements of an array
primitive data types
int, double, boolean
reference data types
Scanner and String
5 basic instuctions in programming
input, output, math, decisions, repetition
why we create methods in java
to group and oranginze code
best practices of writing methods
incremental development and temporary variable
what is debugging? Ways to debug a code.
Checking for bugs and debug by coding in increments
describe ways to do incremental development?
write code and test it
what are data types?
value that a data type stores
identify data types?
int, boolean, double, char, string, array
What are escape sequences? provide samples
Represent special characters inside a string
what are variables?
named storage location to store data
Value
the actual information
parameters
method that stores its arguments
arguments
The actual values or expressions passed into a method during a call. These values initialize the method's parameters and must match the specified type and order
2 types of packages
standard and user defined
what is the scanner class used for?
user inputs
what methods do you use with the scanner class to get user input?
next int, next double, next line
identify rational operators
==, <, >, <=, >=
logical operators
&&,||,!
conditonal statements and when do you use them?
true or false statements
How to do conditional with strings
if (Varname.equals(“fruit”))
Reference to an array
arrayB = arrayA
Copy of an Array
arrayB = Arrays.copyOf(arrayA) ORRRR a for loop
while loop
checks condition first
for loop
does evreything in one statement
do while loop
does evreything and then checks it