Title: Create and compile a block of code.
Course: Java Programming (Oracle) (10055) > Section: Learning the Fundamentals of Java as an Object-Oriented Programming Language

Creation should include the following syntax:

- the keyword CLASS
- the name of the class beginning with a capital letter should follow the keyword CLASS
- an opening curly brace
- variable declarations
- the main class definition—including opening and closing curly braces
- an ending curly brace.

Sample code follows:

class SimpleBlock {

int a = 6;

public static void main(String args) {

System.out.println(“this is a simple block of code”);
System.out.println(“this is the value of a” + a);

}

}