r/learnjava • • Feb 06 '20

Java Side projects for beginners

Hi I’m a freshmen who just started learning java a month back. Are there any side projects that I can work on as a beginner or is it too early for me to start on a side project?

83 Upvotes

15 comments sorted by

46

u/chebwai Feb 06 '20

Word encryptor, units converter, baby names generator. Hyperskill has lots of projects from simple ones to supercomplex ones.

20

u/edgargonzalesII Feb 06 '20

Calculator, hangman, snake (kinda), connect four, mainly games and small apps. All good to get your feet wet

2

u/qelery Feb 20 '20

Why the kinda fit snake?

3

u/edgargonzalesII Feb 20 '20

Game loop. Requires threads and listening for keyboard inputs in parallel. That is hard especially for a beginner.

Making a 2d array that just waits until the player presses the keyboard to move is more feasible. Essentially you make the whole game (eat, traverse, grow, traverse from one side to the other through wall) but the actual game loop.

1

u/qelery Feb 20 '20

So I’m actually working on this in Python using Pygame which hands most of that stuff. Does Java have an equivalent?

1

u/edgargonzalesII Feb 20 '20

To be very honest - not sure. It has some game engines like LibGDX which I think are kinda user friendly. But nothing as trivial as pygame in my experience

3

u/tedyoung Feb 07 '20

I always like to recommend card and dice games to my students (with a console/text-based interface), or, if you're a board game player, implement a simple version of a favorite, ones with grids are best: anything from Battleship to Tiny Towns.

3

u/BigGuyWhoKills Feb 07 '20

Hyperskill has a decent selection for various skill levels. That link will take you to the "Easy" skill level. Hyperskill was recently added to the sidebar.

I would recommend you set up a GitHub account, and add all side projects to it. You can then share your GitHub account on your resume. This is very useful for employers. I would even put simple projects on there. Those can show how well or poorly you comment your code (remember for comments: more is not always better).

Be cautious about adding school projects. If you add them, make sure they are set to private. If you make the project publicly accessible, your school may consider it the same as giving answers to other students. My school warned us over and over about this. Their penalty is suspension and/or revocation of your degree. I added all of my projects, but set them to private. GitHub now allows for unlimited private repositories.

2

u/nim0730 Feb 11 '20

Never too early to start projects! My first Java project was Tic Tac Toe. I started with two player and moved on to playing against the PC. Then I made the PC unbeatable and created different difficulty leaves the user could choose from. It was a lot of fun and taught me a lot

3

u/juan4781 Feb 06 '20

I have a java textbook with little projects

10

u/dhawal0008 Feb 06 '20

Name of the book please

0

u/[deleted] Feb 06 '20

[deleted]

1

u/[deleted] Feb 07 '20

[removed] — view removed comment

1

u/desrtfx Feb 07 '20

Don't hijack threads. This is impolite. Open your own thread, support as much information as you can.

removed

2

u/[deleted] Feb 07 '20

No problem will do!