Java schema (Chapter III process control, arrays)

Java schema (Chapter III process control, arrays)

1, branch statement


 

1) if-else statements

2) switch Statement

2, loop


 

1) while statement

  while the return value is not 1/0, you must be a Boolean expression

2) do-while statement

3) for statement

4) continue / break statements

  Reference numeral block of statements is / cycle named. eg: A: cyclic

  continue A; outer loop terminates directly labeled

3, the array (reference type)


 

Uncertain size 1) Statement

2) references: a reference index, pointerless

3) Examples of (deallocation) statement: new

4) array initialization: it does not require as large in each dimension

4, string


 

1) Type: string type, double quotes

2) Function

  a.substring (0, x) takes a string

 

Guess you like

Origin www.cnblogs.com/ggotransfromation/p/11613895.html