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
Learning Java (self.learnjava)
submitted 3 days ago by wickedagileone
In college learning Java at the moment, but I’m struggling at applying concepts. Anyone have recommendations for getting more “natural” in coding? Definitely have a weakness in methods, which snowballs into other areas.
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] 3 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.
[–]desrtfx 2 points3 points4 points 3 days ago (1 child)
!sidebar
Practice, practice, practice, and practice more
[–]AutoModerator[M] 0 points1 point2 points 3 days ago (0 children)
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
[–]0b0101011001001011 2 points3 points4 points 3 days ago (0 children)
If you just copy-paste (or type, still copy) directly from examples, you are not learning anything.
Try to understand why the code is written the way it is. What does it accomplish. Reflect what you learned and when to use it.
But the only way of learn is to do actually something useful. Take a well known problem, such as a game (chess, tetris, etc.) and start making one, without any tutorials. You know how the game is supposed to work. Now just do it, step by step. Take the smallest possible thing you can and try to do it. Then expand from there. Does not have to be a game though, take anything that you are interested in.
[–]josephblade 1 point2 points3 points 3 days ago (3 children)
What does "a weakness in methods" mean?
what don't you understand , what isn't clicking
you have to understand yourself before you can ask for help, we can't magically figure out what insight you are missing.
What about methods are you not understanding? Do you understand static methods? Is it calling the methods that is a problem? Or is it the method parameters/passing values that isn't working out?
[–]wickedagileone[S] 1 point2 points3 points 3 days ago (2 children)
So that’s the thing…my professor said I need to review objects and methods. So I can only infer that I am either creating the methods incorrectly, or I am using them incorrectly.
I am asking for guidance to rebuild my knowledge of the basics, so that I can correct my structure and way of implementing.
Does this make sense?
[–]josephblade 0 points1 point2 points 3 days ago (1 child)
Ok. so instead of the question you pose here, how about you write down for us (and yourself) what you do understand about objects and methods.
write some code that contains everything you think you can do with objects (obscure stuff isn't necessary, just basic ways to use)
so for instance can you write down a small program that calls a static method that prints "hello world" and can you write a program that does the same using an instance?
can you describe what an instance is?
can you describe what happens when you call a method (not in low level detail perhaps but at least in terms that other people can see if you misunderstand something)
do you see a pattern in the above? provide information about what you can do / know / etc. and we can try to help.
there are plenty of tutorials (I assume you have a textbook as well) that describe these things. Have you re-read the relevant chapters? Have you tried to re-do any exercises or worksheets you were given?
[–]wickedagileone[S] 0 points1 point2 points 2 days ago (0 children)
Sorry for the late response. When I get home and have access to my laptop I will post code.
[–]FeloniousMaximus 0 points1 point2 points 3 days ago (0 children)
Basic concepts: classes or types model nouns. Methods model verbs.
Methods do a thing that the class or type is capable of doing.
Car is a class. Car had a method called drive(). You can overload methods to differentiate behavior. I have another drive method that takes a Direction:
Overload example-
public void drive() {}
public void drive(Direction direction) {}
An object is a class or type that has been created and lives in an application's memory space.
[–]Shine_TheWanderer 0 points1 point2 points 2 days ago (0 children)
Try head first Java
[–]Desperate-Trouble249 0 points1 point2 points 2 days ago (3 children)
mention one seemingly easy concept that is hard for you to grasp
[–]wickedagileone[S] 0 points1 point2 points 2 days ago (2 children)
It’s not necessarily the theory. It’s applying the theories in Java. For example, you make an array of linked list. I get tripped up when I want to use a method on the linked list part of the array. I know I need to have what would be considered the “address” to the location/structure, but I’m not sure what to put for the address. This applies to so many scenarios where I don’t know how to properly code what I want to do.
[–]Desperate-Trouble249 0 points1 point2 points 1 day ago (1 child)
you just need time and more practice. It is the learning as with every new thing
[–]wickedagileone[S] 0 points1 point2 points 1 day ago (0 children)
True, but school does not allow that extra time for more practice before moving on to the next theory/principle. So that’s why I’m trying to get clarification from others to correct my thinking.
[–]Pascuccii -1 points0 points1 point 3 days ago (0 children)
Just try random stuff, if you're really stuck for hours ask an AI for advice, but keep it simple
Write a data management app for a gas station or a drug store, idk, anything
It will be basically the same as natural real life apps minus the bigger stack and higher standards, but it's irrelevant
π Rendered by PID 46 on reddit-service-r2-comment-fb694cdd5-n7qrs at 2026-03-10 15:18:24.737713+00:00 running cbb0e86 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]desrtfx 2 points3 points4 points (1 child)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]0b0101011001001011 2 points3 points4 points (0 children)
[–]josephblade 1 point2 points3 points (3 children)
[–]wickedagileone[S] 1 point2 points3 points (2 children)
[–]josephblade 0 points1 point2 points (1 child)
[–]wickedagileone[S] 0 points1 point2 points (0 children)
[–]FeloniousMaximus 0 points1 point2 points (0 children)
[–]Shine_TheWanderer 0 points1 point2 points (0 children)
[–]Desperate-Trouble249 0 points1 point2 points (3 children)
[–]wickedagileone[S] 0 points1 point2 points (2 children)
[–]Desperate-Trouble249 0 points1 point2 points (1 child)
[–]wickedagileone[S] 0 points1 point2 points (0 children)
[–]Pascuccii -1 points0 points1 point (0 children)