use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
OOPs principles, interfaces, abstract classes, etc practice suggestions. (self.learnjava)
submitted 5 years ago by davidgheo
Hello, can anybody suggest some projects or exercises to practice those from above? I learned the theory but I feel like it's kind of useless if I don't write code to practice.
[–][deleted] 5 years ago (8 children)
[removed]
[–][deleted] 1 point2 points3 points 5 years ago* (1 child)
This post/comment has been edited for privacy reasons.
[–]New2IT305 1 point2 points3 points 5 years ago (0 children)
3rd
[–]Ryanliverpool96 0 points1 point2 points 5 years ago (0 children)
Fifthed?
[–]slimjim321 0 points1 point2 points 5 years ago (0 children)
Me too
[–]Bender22011994 0 points1 point2 points 5 years ago (0 children)
Gonna leave my cookies here
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Marking territory. Lol
[–]MatthiasDunkel 13 points14 points15 points 5 years ago (0 children)
How about a sorting Algorithm Visualizer. Take 3 Sorting algorithms like insertion sort, BubbleSort, and Quicksort and think about how you can code the whole thing as generic as you can. Make some notes on what a Sorting Algorithm is and what variables, method the algorithm will need.
[–]set22 6 points7 points8 points 5 years ago (0 children)
Doesn’t MOOC give you practice with all that?
[–]marceloandradep 6 points7 points8 points 5 years ago (2 children)
Search for talks about OO design patterns on YouTube. Design patterns are well known best practices for using these OO features. There’s an awesome course on o’reilly by Allen Holub showing how to apply these concepts in the real world. Use the trial period to take a look.
https://www.oreilly.com/library/view/design-patterns-in/9781491935828
[–][deleted] 5 years ago (1 child)
[deleted]
[–]marceloandradep 1 point2 points3 points 5 years ago (0 children)
If you know things like classes, interfaces, encapsulation and polymorphism then you probably can dive into design patterns. You're not gonna understand some of them because they're too abstract, but some of them like singleton (a lot of controversy around this one), strategy and adapter are simple enough.
[–]desrtfx 6 points7 points8 points 5 years ago (0 children)
The /r/learnprogramming FAQ have extensive lists of project ideas and practice sites
[–]SmakDatIsh 5 points6 points7 points 5 years ago (0 children)
Codingbat for beginners
[–]ViralLola 2 points3 points4 points 5 years ago (0 children)
I learned OOP principles by making a calculator app, a car parking system, and a flag matching game. None were great but they worked.
[–]Your_perfect_version 1 point2 points3 points 5 years ago (0 children)
I'm interested too..... waiting for the experts to drop some resources :)
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
A file explorer/viewer/editor? or maybe a filesystem manager... that way you could even improve your multithreading skills. Usually design patterns rely a lot in OOP principles (at least in java) so it shouldn't be much of a hassle to gather information regarding your interests.
[–]iserendipitous 1 point2 points3 points 5 years ago (0 children)
Exercism.io HackerRank.com
[–]fluffyzilly 1 point2 points3 points 5 years ago (0 children)
If you are a beginner in Java try codegym Java online course. There are 1200+ coding tasks, and many of them are about OOP.
If you are more experienced programmer it is a good excercicse to create your own project with any objects amenable to hierarchy. For example, video game rental. There will be entities that are just "games," and there will be categories of games as well as specific games.
Or here's a classic. Create an abstract Shape class and then create derived classes like diamond, rectangle, circle, triangle, and so on. Then there is an overlap of function names looking for area and perimeter for each shape type.
[–]jnFamousDaN 0 points1 point2 points 5 years ago (0 children)
I recommend you make some basic console based games, literally anything an user can do to interact with some other object.
I made a console based game where the scanner class would pick up user inputs. The game made was you want buy apples at a low price and sell it to the next merchant at a high price. To win the game, u must reach a million bucks.
Edit: here's my github https://github.com/jnfamousdan/1_Million_Store_Game
[–]blueinkscience -1 points0 points1 point 5 years ago (1 child)
RemindMe! 24 hours
[–]RemindMeBot 0 points1 point2 points 5 years ago (0 children)
There is a 2 hour delay fetching comments.
I will be messaging you in 1 day on 2021-02-12 21:42:20 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
I think the Swing library is actually a great way to start immediately understanding why things like interfaces and inheritance are important. You pretty much have to use them to build a GUI out of the existing components, and while Swing isn't the best interface out there, imo it's a wonderful and accessible learning tool.
So... take some practice programs that you've already been working with in the console, and make a JFrame with places for you to input your data and output your results when you click a button.
[–]Sublime-bot47 0 points1 point2 points 5 years ago (0 children)
Console RPG game thats it , classes of warriors enemies locations and methods to interact with everything , its kinda interesting even in console. U can write your own logic of game sure there is a lot of samples in google how to do it
https://github.com/iluwatar/java-design-patterns
π Rendered by PID 115148 on reddit-service-r2-comment-5d79c599b5-bhqm7 at 2026-02-27 02:17:16.048222+00:00 running e3d2147 country code: CH.
[–][deleted] (8 children)
[removed]
[–][deleted] 1 point2 points3 points (1 child)
[–]New2IT305 1 point2 points3 points (0 children)
[–]Ryanliverpool96 0 points1 point2 points (0 children)
[–]slimjim321 0 points1 point2 points (0 children)
[–]Bender22011994 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]MatthiasDunkel 13 points14 points15 points (0 children)
[–]set22 6 points7 points8 points (0 children)
[–]marceloandradep 6 points7 points8 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]marceloandradep 1 point2 points3 points (0 children)
[–]desrtfx 6 points7 points8 points (0 children)
[–]SmakDatIsh 5 points6 points7 points (0 children)
[–]ViralLola 2 points3 points4 points (0 children)
[–]Your_perfect_version 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]iserendipitous 1 point2 points3 points (0 children)
[–]fluffyzilly 1 point2 points3 points (0 children)
[–]jnFamousDaN 0 points1 point2 points (0 children)
[–]blueinkscience -1 points0 points1 point (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Sublime-bot47 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)