Java Language Basics
This part of the tutorial covers the basics of the language, including: variables, operators, expressions, statements, blocks and control flow statements.
-
Creating Variables and Naming Them
Rules to name variables.
-
Creating Primitive Type Variables in Your Programs
Syntax to create and initialize primitive type variables.
-
Creating Arrays in Your Programs
Creating fixed-length containers of objects with arrays.
-
Using the Var Type Identifier
Defining Variables with Var.
-
Using Operators in Your Programs
Computing things with operators.
-
Summary of Operators
Wrapping up the Java operators.
-
Expressions, Statements and Blocks
Understanding expressions, statements and blocks, and how to group statements into blocks.
-
Control Flow Statements
This section describes the decision-making statements, the looping statements, and the branching statements supported by the Java programming language.
-
Branching with Switch Statements
How to use switch statements to control the flow of your program.
-
Branching with Switch Expressions
Extend switch so it can be used as either a statement or an expression.