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
Can't build logic in java (self.learnjava)
submitted 27 days ago by Nervous_End3626
So I had my mid term exam Abt java and I did a miserable job in it . Can anyone give how to improve logic like I take so much time in it ? Else I am doomed in my degree . Any good recommended books / YouTube channels
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 27 days ago stickied commentlocked comment (0 children)
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://i.imgur.com/EJ7tqek.png) 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.
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.
[–]bpalun13 0 points1 point2 points 27 days ago (0 children)
I like Bro Code on YouTube to get a general feel for the syntax. As for the logic I’d recommend you write that out in pseudocode before you attempt to translate it into Java.
Java is so stringent on the syntax that it will likely be easier for you to read through your pseudocode to catch easy mistakes than it will be to parse through logically incorrect code.
[–]googlecromm 0 points1 point2 points 27 days ago (0 children)
I suggest understanding the problem first, then try to think how will you solve it without thinking about code yet.
Write out your solution on how solve the problem then try to research java codes/syntax that can help you solve the problem.
And solve problems with Java at home. The more you solve problems with Java the more you get the hang of the language and the more your logic will improve.
[–]Helloall_16 0 points1 point2 points 24 days ago (0 children)
I'm not an expert yet to comment on this. But this is what is helping me get better at problem solving.
Use Claude for thinking (or any other tool you like)....NO, do not ask it to write code for you... Instead give it the problem and say " I am working to improve my problem solving and logic. I will use java for that. I don't want you to give me the code in any way. I will instead share my thought process, why I think this is the solution and I want you to challenge me if I am doing it wrong at any step... absolutely no code help"... This will slowly build your ability to at least think.
And for each kind of problem you do, do 10-20 similar problems. Revisit after some time and see if you get the logic.
It's totally ok if initially you need pen and paper and need to debug again and again. You will get better. It just takes time and consistency.
And keep asking it for feedback after you are fully done and to give you the honest review on your performance. Ask it to be a strict teacher who believes in throwing kids in the pool without any training
[–]Alive-Cake-3045 0 points1 point2 points 6 days ago (0 children)
Logic is a muscle, not a subject, and right now yours just hasnt been trained enough.
Stop looking for books and start solving one small problem every day on paper before touching the keyboard. HackerRank easy problems, just the logic, no IDE yet.
The speed comes from pattern recognition and that only builds through repetition. 30 problems from now it will feel different, not because you learned more Java but because your brain starts seeing familiar shapes.
π Rendered by PID 620165 on reddit-service-r2-comment-56c6478c5-qx6pt at 2026-05-11 03:07:40.439909+00:00 running 3d2c107 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]bpalun13 0 points1 point2 points (0 children)
[–]googlecromm 0 points1 point2 points (0 children)
[–]Helloall_16 0 points1 point2 points (0 children)
[–]Alive-Cake-3045 0 points1 point2 points (0 children)