{"id":18305361,"url":"https://github.com/mrcfps/core-java-code-samples","last_synced_at":"2025-10-20T06:40:08.757Z","repository":{"id":85482032,"uuid":"113832262","full_name":"mrcfps/core-java-code-samples","owner":"mrcfps","description":"Code samples from the Core Java book.","archived":false,"fork":false,"pushed_at":"2017-12-16T02:36:02.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T04:44:22.078Z","etag":null,"topics":[],"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/mrcfps.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":"2017-12-11T08:25:22.000Z","updated_at":"2017-12-16T01:03:11.000Z","dependencies_parsed_at":"2023-03-10T02:16:05.624Z","dependency_job_id":null,"html_url":"https://github.com/mrcfps/core-java-code-samples","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/mrcfps%2Fcore-java-code-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcfps%2Fcore-java-code-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcfps%2Fcore-java-code-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrcfps%2Fcore-java-code-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrcfps","download_url":"https://codeload.github.com/mrcfps/core-java-code-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248024709,"owners_count":21035320,"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":[],"created_at":"2024-11-05T15:34:07.714Z","updated_at":"2025-10-20T06:40:03.735Z","avatar_url":"https://github.com/mrcfps.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core Java Code Samples\n\n## [Chapter 2](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch02): Java Programming Environment\n\n- [ImageViewer](https://github.com/mRcfps/core-java-code-samples/blob/master/src/ch02/ImageViewer.java): A program for viewing images.\n\n## [Chapter 3](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch03): Java Program Basic Structure\n\n- [InputTest](https://github.com/mRcfps/core-java-code-samples/blob/master/src/ch03/InputTest.java): This program demonstrates console input.\n- [Message](https://github.com/mRcfps/core-java-code-samples/blob/master/src/ch03/Message.java): This program demonstrates how to capture command line parameters.\n\n## [Chapter 4](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch04): Objects and Classes\n\n- [ParamTest](https://github.com/mRcfps/core-java-code-samples/blob/master/src/ch04/ParamTest.java): Illustrate behaviors when passing parameters to methods.\n\n## [Chapter 5](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05): Inheritance\n\n### Classes\n\n- [MaxTest](https://github.com/mRcfps/core-java-code-samples/blob/master/src/ch05/MaxTest.java): Demonstrates the use of variable parameters.\n\n### Packages\n\n- [abstractClasses](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/abstractClasses): Demonstrates the use of abstract classes.\n- [arrays](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/arrays): Demonstrates the use of reflection for manipulating arrays.\n- [enums](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/enums): Demonstrates enumerated types.\n- [equals](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/equals): Demonstrates objects comparation.\n- [inheritance](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/inheritance): Demonstrates inheritance usage.\n- [reflection](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch05/reflection): This program uses reflection to print all features of a class.\n\n## [Chapter 6](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06): Interfaces and Inner Classes\n\n- [anonymousInnerClass](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/anonymousInnerClass): Demonstrates anonymous inner classes.\n- [clone](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/clone): Demonstrates object cloning.\n- [innerClass](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/innerClass): Demonstrates the use of inner classes.\n- [interfaces](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/interfaces): Demonstrates the use of the `Comparable` interface.\n- [staticInnerClass](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/staticInnerClass): Demonstrates the use of static inner classes.\n- [timer](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch06/timer): Demonstrates events and callback.\n\n## [Chapter 10](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch10): Deploying Applications and Applets\n\n- resources: Demonstrates usage of resources when packing jar files.\n- properties: A program to test properties. The program remembers the frame position, size and title.\n- preferences:  A program to test preference settings. The program remembers the frame position, size, and title.\n\n## [Chapter 11](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch11): Exceptions, Assertions, Logging and Debugging\n\n- stackTrace: A program that displays a trace feature of a recursive method call.\n\n## [Chapter 12](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch12): Generic Programming\n\n### Classes\n\n- Pair: To be used by following packages.\n\n### Packages\n\n- pair1: The simplest use case of generics.\n- pair2: Demonstrates how to pose restrictions on type parameters.\n- pair3: Demonstrates wildcard types.\n\n## [Chapter 13](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch13): Collections\n\n- linkedList: This program demonstrates operations on linked lists.\n- map: This program demonstrates the use of a map with key type `String` and value type `Employee`.\n- priorityQueue: This program demonstrates the use of a priority queue.\n- set: This program uses a set to print all unique words in `System.in`.\n- treeSet: This program sorts a set of item by comparing their descriptions.\n- shuffle: This program demonstrates the random shuffle and sort algorithms.\n- sieve: This program runs the Sieve of Erathostenes benchmark. It computes all primes up to 2,000,000.\n\n## [Chapter 14](https://github.com/mRcfps/core-java-code-samples/tree/master/src/ch14): Multithreading\n\n- bounce: Shows an animated bouncing ball.\n- bounceThread: Shows an animated bouncing ball, running by a thread.\n- unsynch: This program shows data corruption when multiple threads access a data structure.\n- synch: A bank with a number of bank accounts that uses locks for serializing access.\n- synch2: A bank with a number of bank accounts that uses synchronization primitives.\n- blockingQueue: Demonstrates the use of blocking queue.\n- future: Demonstrates the use of `Callable` and `Future`.\n- threadPool: Demonstrates using thread pool in Java.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcfps%2Fcore-java-code-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrcfps%2Fcore-java-code-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrcfps%2Fcore-java-code-samples/lists"}