{"id":19519868,"url":"https://github.com/dahlitzflorian/java-snippets","last_synced_at":"2026-06-11T03:31:49.922Z","repository":{"id":102340579,"uuid":"140977086","full_name":"DahlitzFlorian/java-snippets","owner":"DahlitzFlorian","description":"A collection of small and useful Java snippets.","archived":false,"fork":false,"pushed_at":"2018-08-21T19:14:00.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T00:24:26.194Z","etag":null,"topics":["education","educational","educational-materials","educational-resources","java","java-8","java8","snippets","snippets-collection"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DahlitzFlorian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-14T20:49:00.000Z","updated_at":"2023-09-08T17:42:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9589642-29d6-443d-8cea-b63c8f8b6426","html_url":"https://github.com/DahlitzFlorian/java-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DahlitzFlorian/java-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fjava-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fjava-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fjava-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fjava-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DahlitzFlorian","download_url":"https://codeload.github.com/DahlitzFlorian/java-snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DahlitzFlorian%2Fjava-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34181554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["education","educational","educational-materials","educational-resources","java","java-8","java8","snippets","snippets-collection"],"created_at":"2024-11-11T00:22:20.956Z","updated_at":"2026-06-11T03:31:49.907Z","avatar_url":"https://github.com/DahlitzFlorian.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Snipptes #\n## Description ##\nIncluding 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.\n\n## Available Snippets ##\n| Class/Folder Name | Description |\n|------------|-------------|\n| ArrayVSArrayList | Compares the usage of standard arrays and ArrayList |\n| CEExample | Provides an example of a checked exception |\n| CompoundAssignmentOperators | Provides several examples of compound assignment operators |\n| exceptions | Includes a custom exception class and a tester class |\n| IncrementDecrementOperators | Illustrates the different behaviour of prefix- and postfix-incrementation/decrementation |\n| interfaces | Demonstrates the usage of multiple interfaces |\n| LabeledStatements | Introduces the usage of labeled statements |\n| lambda | Reveals the usage of lambda expressions in connection with the Stream API |\n| LegalFishSizes | Example of how to use the enhanced for-loop (with conditions) |\n| ListFiles | Walks through a given directory and logs all available text-files |\n| LogicalOperatorsOutput | Shows the evaluation steps of the different logical operators |\n| MultiCatchClause | Shows the proper usage of multi-catch-clauses |\n| packaging | Includes classes to learn packaging and a description on how to compile and run them |\n| polymorphism | Demonstrates the concept of polymorphism using interfaces |\n| PropertiesManager | Lists all system properties - created to test java interpreter switches |\n| Ships | Provides a set of classes and interfaces to give an understanding of class structuring |\n| StringSwitch | Illustrates the usage of Strings in switch-statements (\u003e= Java SE 7) |\n| TryFinally | Demonstrates the behaviour of the try-finally-statement |\n| TryWithResources | Illustrates the usage of a try-with-resources-statement |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahlitzflorian%2Fjava-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdahlitzflorian%2Fjava-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahlitzflorian%2Fjava-snippets/lists"}