Double quotes around the text =
a String of characters
+ in a String =
Strong concatenation operator
Escape Sequences
\t = tab \n = newline \r = carriage return \” double quote \’ = single quote \\ = backslash
variable
is a name for a “location” in memory
a variable must be declared with…
the type of information that it will hold
a bit can be either…
a 1 or a 0
a string of N bits can be used to represent…
2 to the Nth different values
8 primitive data types in Java
an expression is made up of one or more …
variables, operators, and/or method invocations that evaluates to a single value.
arithmetic expressions
+, -, *, /, %(remainder aka modulus)
increment operator
++
decrement operator
–
x += count is the same as…
x = x+count
Relational Operators (for Boolean Values)
== Equal != Not equal < less than <= less than or equal > greater than >=greater than or equal
Data conversions can occur in three ways…
nextLine() next() are methods in…
the Scanner (import java.util.Scanner) class which return a String value
nextInt(), and nextDouble()
convert to their type
unless specified otherwise, tokens are
delimited by white space, which include spaces, tabs, newlines, and return characters.