(Excerpt from: Java Classic Getting Started tutorial)
Http://wenku.baidu.com/link?url= Iowi58cd5vzehn-nl4pn7gren-rfzydrhjdletabyc9l-9aninylwuwchpwiyc3hqhzpws5fv2fuh-k1zp4ixh6afvkpibvtdflpbvwp1tc
V: basic knowledge of Java code
1: statement
With a semicolon ";" The end of a line of code is a statement, in Java the statement must be ";" End.
such as: int a = 10;
You can have a block statement, for example:
int i=0;
{
int j = 0;
PDF file created with "Pdffactory Pro" trial version www.fineprint.cn
JAVA Private school with Me study Series--java article website: http://www.javass.cn Tel: 010-86835215
j = j+1;
}
i++;
2: Blocks (block)
A block is a collection of statements with {} As a boundary, and blocks can be nested. Such as:
{
int a = 10;
String s = ""; A statement or multiple statements can be
{
SYSTEM.OUT.PRINTLN ("Blocks can be nested");
}
}
Basic knowledge of Java code (excerpt)