
A compilation of projects to learn object-oriented programming in Java focus on Java Collections (manipulating data)
Table of Contents
JavaCollections is a compilation of projects to learn object-oriented programming in Java focus on Java Collections (manipulating data).
Its inspiration comes from Java Programming course by Oracle Academy.
There are 5 projects in JavaCollections Project:
- classlist
- hashsetexample
- hashfruits
- sortexample
- GameCollections
classlist
hashsetexample
hashfruits
sortexample
are inspired by example and tasks in JP course.
classlist
stores and sorts student names (String) in a list using ArrayList
. hashsetexample
stores and find coin (Coin class) in a bag using HashSet
. hashfruits
stores and find fruits (String) and their colors (String) in a fruit bowl using HashMap
.
sortexample
is a project manipulating data in int[]
structure. sortexample
sorts and finds a value in 100 data and 1,000 data integer arrays. Each integer array has unsorted, ascending sorted, and descending sorted version. sortexample
features time processing on each sorting algorithm for time comparison.
GameCollections
is a project manipulating data in ArrayList
with a specific class. The data is a list of games in ArrayList
of Game class. Each game has name, platform, and metascore. Some games have same metascore. GameCollections
sorts and finds a value of Metascore in a game list by lower value (ascending).
GameCollections``sortexample
both have same types of sorting and searching algorithms. The sorting algorithm are Selection Sort, Bubble Sort, Optimized Bubble Sort, and Binary Search Tree (using class specific). The searching algorithm are Binary Search and Sequential Search.
Each built is a standalone project using Java with Ant.
This is an example of how to use JavaCollections project on Apache NetBeans 19.
- Apache NetBeans 19 with JDK 17 installed
You can find the latest version of Apache NetBeans here.
- Download JavaCollections source code
- Extract JavaCollections zip to your chosen folder
- Open Apache NetBeans 19
- Open File > Open Project... (CTRL+Shift+O)
- Find your folder at step 2
- Choose a variant you want to try
- Click Open Project
- Project ready
You can run every JavaCollections variants to have a good summary of how manipulating data in Java. Each description is listed in Variant.
Furthermore, you can create your own modification to answer your curiousity.
Hopefully, find the best practices of data manipulating. Also, add new variant of sorting and searching algorithm for comparison.
Distributed under the MIT License. See LICENSE.txt
for more information.
Satria Manggala Jati - @satriamjati - [email protected]
Project Link: https://github.com/satriamjati/JavaCollections