r/learnjava • • Feb 14 '22

What projects have you built while you were learning Java?

I have been learning the language for 5 months now and have been loving it. I made a gui-less tictactoe game, built a lot of "banking" type projects though the University of Helsinki's MOOC, got into guis through swing and JavaFX and built a BMI program which taught me a lot, branched into android and built myself an app using NASA's API which taught me so much more. Throughout my learning journey, everything went smoothly except for one thing which has caused me the most trouble, and that is finding a project to build.

I am learning Java for my AP Computer Science exam which focuses mostly on Data structures and algorithms, and so thinking of projects to build that focus on that is extremely hard for me and ends up causing me so many hours of wasted time on looking for something to build.

EVERYTHING I can think of that seems interesting to me contains some sort of gui element that would have me work on the interface more which I want to do the opposite of.

I have looked through every projects list there is on the internet.

Would you please recommend me projects that you've built earlier on in your Java learning journey?

Thank you in advance.

67 Upvotes

15 comments sorted by

11

u/just_double_v Feb 14 '22

Hyperskill is what you are looking for. Pure gold

2

u/obvslynot Feb 14 '22

Which track?

4

u/just_double_v Feb 14 '22

Pick what you want. I'm doing begginer track. Revising stuff and uploading something on github. You can do 20+ java projects there. Some are advanced, saw something with rest, blockchain. The compilation time is only minus I see

1

u/mortix7 Feb 15 '22

Is it still free?

4

u/rsandio Feb 14 '22 edited Feb 14 '22

The most fun I had with Java at uni was creating Android games using LibGDX. Plenty of tutorials and Youtube videos on all kinds of games. Have made puzzle, platformers, 2d shooters.

Based on what you've said though... you could start looking at some basic AI. Pathfinders/maze solvers, puzzle solvers like a Sudoku solver, computer opponent for Four in a row, tic tac toe, chess. Lots of different approaches and algorithms for you to read about and learn to implement.

Many of these sound overwhelming but the most basic ones aren't. https://www.youtube.com/watch?v=mcXc8Mva2bA Look how simple a Sudoku solver can be.. but start reading up about the more complicated and faster algorithms and things start getting tricky.

1

u/obvslynot Feb 14 '22

Thank you! This sounds very interesting I’ll look into it.

33

u/BananaLlamaNuts Feb 14 '22

BlackJack

Logic heavy, Object-Oriented, Queue structures, enumerated types. You can use a simple GUI for displaying results and buttons, but the real project is the logic.

I wrote mine for my first OOP class and it was the most fun I've ever had programming.

4

u/ibnahmadbello Feb 14 '22

Most of the project I have done have been for job application. Though some personal one I tried include url shortener, generating word for me (I did this while trying out domain biz stuff), healthcalculator to determine BMI and target heat beat.

2

u/brmagic Feb 14 '22

Did a Java Socket project where you create a multithreaded server and a client (can be without gui) to manage todo lists. You can then do lots of things with that, login, hashing etc. We also implemented our own messaging protocol

2

u/AutoModerator Feb 14 '22

It seems that you are looking for resources for learning Java.

In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.

To make it easier for you, the recommendations are posted right here:

Also, don't forget to look at:

If you are looking for learning resources for Data Structures and Algorithms, look into:

"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University

Your post remains visible. There is nothing you need to do.

I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/TrickOfLight113 Feb 14 '22

School projects I did: hangman game on console, mastermind on console, multithreaded program with 'buyers' and 'sellers' (consumers and producers), music player, sockets server-client, snake with swing, shortest path in a graph labyrinth, etc.

I think the idea here is not necessarily to avoid GUIs completely but to keep them at a minimum.

1

u/Jayroprofo Feb 14 '22

For class we made a student records gui using swing and we just wrote all the swing code instead of using the designer. It was pretty much student first name/last name, program, student ID, and 6 marks and we separated it into a few assignments with how the buttons were setup but it was pretty much

  1. Read and write to a file

  2. Read and write to a database

1

u/[deleted] Feb 15 '22

Thanks for asking this question, came here just for this. Think I'll go for the blackjack project as Banana mentioned

•

u/AutoModerator Feb 14 '22

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full - best also formatted as code block

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.