> For the complete documentation index, see [llms.txt](https://hanfak.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanfak.gitbook.io/workspace/languages/java/beginner/instructions.md).

# Instructions

* Expression
  * they can yield results without causing mutation.
  * Expressions work more like a chain: when one person completes a task, they hand off the item to the next person in the chain.
  * Expressions facilitate the Collection Pipeline pattern, which Martin Fowler described as a sequence of operations where one operation’s collected output is fed into the next.&#x20;
* Statements
  * Statements perform an action but do not yield any results
  * any statement that does something useful will result in a mutation of data.
  * Using statements in your code is like collaborating on a piece of work without being able to directly pass that work between team
    * The only way to share something is by placing it on a table or a shelf, where another team member can then retrieve it.
* Ending of statements
  * `;`
* Order of Statements
  * procedural thinking
* Boolean/relational operators (and/or/not)
  * <, >, >=, =< , ==, !=, object.equals(anotherObject)
* Arithmetic/math operations
  * simple operators on primitives
  * use of libraries
    * i.e. abs, ceil
    * see <https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html>
* Declaring and assigning Variables
* blocks
  * initializer block

## Equals & matches

* <https://stackoverflow.com/questions/9700115/difference-between-matches-and-equalsignorecase-or-equals-in-string-class>

## Links

* <https://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html>
* <https://en.wikipedia.org/wiki/Expression_(computer_science>)
* <https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/statements>
* <https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expressions>
* <https://www.thoughtco.com/expression-2034097>
* <https://stackoverflow.com/questions/18139286/what-is-the-use-of-block-in-java>
