201-Your reminder to trust the process!
Source: Java Imports
What are they?
- Imports give Java the advantage of pre-built classes and methods that can perform many functions such as
reading a content file or comparing different dates. The classes are organized into packages that must be
imported into a project in order to be used. Imports will almost always be located at the top of the files code.
Source: Java Loops
What are they?
- Loops are a feature that facilitates the execution of a set of instructions until the controlling
boolean-expression evaluate to false.
Type of Loops:
- for loop: A for loop is a control structure that allows us to repeat certain operations by incrementing
and evaluating a loop counter.
- for-each loop: for-each loop is a shortcut version of for-loop which skips the need to get the iterator and
loop over iterator using it's hasNext() and next() method.
- While loop: The while loop is Java's most fundamental loop statement. It repeats a statement or a block of
statements while its controlling Boolean-expression is true
- Do-While loop: The do-while loop works just like the while loop except for the fact that the first condition
evaluation happens after the first iteration of the loop.