View on GitHub

reading-notes

Read: 02 - Arrays, Loops, Imports

Packages and Import

Package declaration

Following the optional package declaration, you can have import statements

Default package. Altho all Java classes are in a directory, it’s possible to omit the package declaration. For small programs it’s common to omit it, in which case Java creates what it calls a default package.

The statement order is as follows. Comments can go anywhere.

Import

Common imports

Array

Using array to stored data in the one variable like int []arr= {'1','2','3'}; of string or numbered and can fixed and compared to returned the result like which value of these array is long length or odd even capital letter or small letter.

Loops

Type