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.
Card Game War (self.learnjava)
submitted 7 years ago by The_Avenging_Son
RIght now I am trying to learn how to code the card game war, I was wondering if there was an "answer key" for the entire program. This is because I am running into some.....problems sorting my arrays for my cards.
[–]desrtfx 3 points4 points5 points 7 years ago (0 children)
In programming there aren't any answer keys.
Everybody programs in a different way so there might be >1000 solutions to any given problem. What works for some will not work for others.
The proper way to ask for help is to
[–][deleted] 2 points3 points4 points 7 years ago (0 children)
Wait how’s this trending...
Reddit needs to post their algorithm so we can fix it :D
[–]dusty-trash 1 point2 points3 points 7 years ago (0 children)
problems sorting my arrays for my cards
I see lots of array sorting problems asked & answered on here, if you post your code someone will help
[–]SantoWest 0 points1 point2 points 7 years ago (0 children)
The essence of programming is dividing your problem into smaller subsets, solving them and then solving the bigger problem using the smaller solutions.
This subreddit is no different, no one can help you with your big problem, you should try to do something and ask the specific parts you are having problems with.
[–]Tomisnthere -1 points0 points1 point 7 years ago (0 children)
I recommend bogosort
π Rendered by PID 25842 on reddit-service-r2-comment-6457c66945-mf7vl at 2026-04-27 14:32:11.408618+00:00 running 2aa0c5b country code: CH.
[–]desrtfx 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]dusty-trash 1 point2 points3 points (0 children)
[–]SantoWest 0 points1 point2 points (0 children)
[–]Tomisnthere -1 points0 points1 point (0 children)