https://github.com/dahlitzflorian/java-snippets
A collection of small and useful Java snippets.
https://github.com/dahlitzflorian/java-snippets
education educational educational-materials educational-resources java java-8 java8 snippets snippets-collection
Last synced: 2 months ago
JSON representation
A collection of small and useful Java snippets.
- Host: GitHub
- URL: https://github.com/dahlitzflorian/java-snippets
- Owner: DahlitzFlorian
- License: mit
- Created: 2018-07-14T20:49:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T19:14:00.000Z (over 6 years ago)
- Last Synced: 2025-01-08T13:27:59.069Z (4 months ago)
- Topics: education, educational, educational-materials, educational-resources, java, java-8, java8, snippets, snippets-collection
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java Snipptes #
## Description ##
Including smaller Java snipptes this repository was created to learn the Java programming language and to save useful code snippets. It's used for educational purposes only. No versioning needed. A list of available snippets is provided beneath.## Available Snippets ##
| Class/Folder Name | Description |
|------------|-------------|
| ArrayVSArrayList | Compares the usage of standard arrays and ArrayList |
| CEExample | Provides an example of a checked exception |
| CompoundAssignmentOperators | Provides several examples of compound assignment operators |
| exceptions | Includes a custom exception class and a tester class |
| IncrementDecrementOperators | Illustrates the different behaviour of prefix- and postfix-incrementation/decrementation |
| interfaces | Demonstrates the usage of multiple interfaces |
| LabeledStatements | Introduces the usage of labeled statements |
| lambda | Reveals the usage of lambda expressions in connection with the Stream API |
| LegalFishSizes | Example of how to use the enhanced for-loop (with conditions) |
| ListFiles | Walks through a given directory and logs all available text-files |
| LogicalOperatorsOutput | Shows the evaluation steps of the different logical operators |
| MultiCatchClause | Shows the proper usage of multi-catch-clauses |
| packaging | Includes classes to learn packaging and a description on how to compile and run them |
| polymorphism | Demonstrates the concept of polymorphism using interfaces |
| PropertiesManager | Lists all system properties - created to test java interpreter switches |
| Ships | Provides a set of classes and interfaces to give an understanding of class structuring |
| StringSwitch | Illustrates the usage of Strings in switch-statements (>= Java SE 7) |
| TryFinally | Demonstrates the behaviour of the try-finally-statement |
| TryWithResources | Illustrates the usage of a try-with-resources-statement |