https://courses.cs.washington.edu/courses/cse121/.
This glossary defines common terms used in our class. Most are split up by the week they are introduced, though you can skip to course-specific terms for acronyms and words that are about our class itself (rather than computer science concepts).
This glossary is a new experimental resource! We’d love to hear from you with questions, suggestions, or concerns. Post on Ed!
String
: represents a collection of letters, digits, or other characters that are strung together String
Methods, char
, and Variables¶true
or false
char
: a data type that represents a single character double
: a data type that represents decimal numbers int
: a data type that represents whole numbers true
or false
(ex &&
, ||
, !
) %
) +
, /
, %
, &&) true
or false
(ex ==
, <
, >=
) int
, double
, String
)String
): the numerical position of a character in a String
int
, boolean
, char
, double
) String
, defined by a specific starting and ending position String
is assigned an index of 0 (not 1) for
Loops and Nested for
Loops; the Random
Class¶for
Loops and Nested for
Loops¶
String word = "pickleball";
System.out.print(word.charAt(0));
for (int i = 1; i < word.length(); i++) {
char letter = word.charAt(i);
System.out.print("-" + letter);
}
for
loop: a programming construct that repeats lines of code a set number of times for
loop: a for loop placed inside another for loop; used when we need to repeat a task (inner loop) multiple times within another repetition (outer loop) String
traversal: the process of accessing and processing each character in a String
one by one Random
Class¶Random
) return
statement int
, double
, String
) true
or false
within a conditional, which is improper code quality true
or false
if
statement: a control structure that executes a block of code only if a specified condition evaluates to true
else if
block: a control structure that is an optional part of an if
statement; it provides an additional condition to check if the previous condition evaluated to false
else
block: a control structure that is a final, optional part of an if
statement that executes a block of code if none of the preceding conditions were true
while
Loops; User Input (Scanner
); Boolean Zen¶for
loop) while
loops) Scanner
: an object that is used to read user input while
loop: a programming construct that repeats lines of code until a certain condition is met null
: a Java keyword that represents an absence of a reference * This is a topic that is not covered deeply in CSE 121. However, you’ll revisit this idea in-depth in CSE 122 & 123.
This iteration of the glossary was developed by Hannah Swoffer, Maitreyi Parakh, and Sushma Shankar. This is based on a prior glossary written by Hannah Swoffer and Trey Adams.