CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ

Java

Java Programming
Basic coding skills
Code statements

  • Java statements direct the operations of a program.
  • You can start a statement at any point in a line and continue the statement from one line to the next.
  • Most statements end with a semicolon. But when a statement requires a set of braces { }, the statement ends with the right brace. Then, the code within the braces can be referred to as a block of code.
  • To make a program easier to read, you should use indentation and extra spaces to align statements and parts of statements.

Previous | Code statements | Code comments | Code identifiers | Declare a class | Declare a main method | Next