Class-02 reading Summary
Packages and Import:
The packages are the same as directorires.
the correct order for statements in a java file:
- pachage.
- Import.
- class.
we have three options for using import and each option does something defferent.
there are many packages we can use with java.
Different types of loops in Java:
loops in java:
- for loop (we loop a specific number of times).
- for-each loop.
- while loop (loop whenever the condition is true).
- do-while loop (do the statement at least one time and then do it whenever the while condition is true).