{"id":18614949,"url":"https://github.com/andrewjbateman/java-section15-challenge1","last_synced_at":"2025-11-03T03:30:31.227Z","repository":{"id":96860372,"uuid":"383378023","full_name":"AndrewJBateman/java-section15-challenge1","owner":"AndrewJBateman","description":":clipboard: Java challenges using bank account \u0026 student-tutor examples","archived":false,"fork":false,"pushed_at":"2021-07-28T06:59:51.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:45:04.242Z","etag":null,"topics":["java","java11","locks","synchronize","threads","tutorial-code"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-06T07:24:39.000Z","updated_at":"2022-01-11T21:55:13.000Z","dependencies_parsed_at":"2023-03-30T11:36:39.773Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/java-section15-challenge1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjava-section15-challenge1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjava-section15-challenge1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjava-section15-challenge1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjava-section15-challenge1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/java-section15-challenge1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406449,"owners_count":19633024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","java11","locks","synchronize","threads","tutorial-code"],"created_at":"2024-11-07T03:27:37.999Z","updated_at":"2025-11-03T03:30:31.160Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Java Section15 Challenge1\n \n* Java code to display operations on bank account\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/java-section15-challenge1?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/java-section15-challenge1?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/java-section15-challenge1?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/java-section15-challenge1?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Java Section15 Challenge1](#zap-java-section15-challenge1)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Code from Java Programming Masterclass Section 15-288 to 15-292 - see [:clap: Inspiration](#clap-inspiration) below\n* [Lock framework](https://www.geeksforgeeks.org/lock-framework-vs-thread-synchronization-in-java/) used instead of synchronized block for increased concurrency and overall performance.\n\n## :camera: Screenshots\n\nN/A\n\n## :signal_strength: Technologies\n\n* [Java v11](https://www.java.com/en/)\n* [synchronized method](https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html) only one synchronised method can operate on an object block at a time. This makes it thread-safe\n* [Interface Lock](https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Lock.html) a tool for controlling access to a shared resource by multiple threads.\n* [Enum Timeunit](https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/TimeUnit.html)\n\n## :floppy_disk: Setup\n\n* Open folder in an IDE such as IntelliJ. Run  from `Main.java`\n\n## :computer: Code Examples\n\n* Interface lock code format\n\n````java\nLock l = ...;\n    l.lock();\n    try {\n    // access the resource protected by this lock\n    } finally {\n     l.unlock();\n    }\n````\n\n## :cool: Features\n\n* N/A\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Complete\n\n## :clap: Inspiration\n\n* [Udemy: Java Programming Masterclass for Software Developers](https://www.udemy.com/course/java-the-complete-java-developer-course/learn/lecture/3561816#overview)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://www.andrewbateman.org), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjava-section15-challenge1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fjava-section15-challenge1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjava-section15-challenge1/lists"}