Summary: A First Look at Java
Understand the basics of Java programming by learning about identifiers, data types like int and boolean, string output methods, comments, and declaring constants and variables. Discover how to read input using the Scanner class and how to display results using print and println statements.
We'll cover the following...
We'll cover the following...
- An identifier is a word composed of letters, digits, the underscore (
_), and/or the dollar sign ($). It cannot begin with a digit. An uppercase letter is distinct from its lowercase counterpart. - A reserved word is an identifier that has a special meaning in Java.
- We use a Java statement of the form
System.out.println(. . .)to display text. The text is placed between the parentheses and enclosed in double quotes. Such text is