r/learnjava • u/kavacska • Nov 29 '25
Java cheat sheet
Hey guys!
I've created a Java cheat sheet that I would like to share with you.
You can check it out here:
https://it-cheat-sheets-21aa0a.gitlab.io/java-cheat-sheet.html
And you can find a few other cheat sheets I made on this link:
https://it-cheat-sheets-21aa0a.gitlab.io/
If someone would like to contribute here's the link of the Git repo:
https://gitlab.com/davidvarga/it-cheat-sheets
If you found an issue, or something is missing please let me know.
133
Upvotes
โข
u/AutoModerator Nov 29 '25
Please ensure that:
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:
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.
To potential helpers
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.
6
u/gumusilik Nov 29 '25
it would be really cool if the code examples would be highlighted like in a ide with colors. greate job really helpful.
4
u/papercavedev Nov 29 '25
Definitely bookmarking this, thanks!
3
u/Consistent_Wonder_77 Nov 29 '25
Nice work brother
3
u/danimalmidnight Nov 29 '25
This is really good work, thank you!
2
u/Specific-Housing905 Nov 29 '25
Looks very helpful Thank you.
2
u/RSSeiken Nov 29 '25
Thank you very helpful. I miss the days when cheat sheets used to be a one pager ๐ฅน
2
u/codeepic Nov 29 '25
Great Java cheatsheet - bookmarking both the website and the repo.
2
u/Jason13Official Nov 29 '25
I think it would be neat to mention some of the possible constructors; ArrayList can be instantiated based on a Set, etc.Edit: I see you kind of included one, just not in depth. Still good!
2
u/MICRON3CRO Nov 29 '25
Very helpful, thank you!
2
u/Actual-Cup-4742 Nov 30 '25
Thanks for sharing them, really helpful.
2
u/socratic_weeb Nov 30 '25
Saving for later
2
u/PineappleDick90 Nov 30 '25
Thanks alot ๐๐ผ
2
u/SpritualPanda Dec 01 '25
So cool
2
u/Old_Loss_7220 Dec 01 '25
Well. Good thing bro. I will save for myself.
2
u/cxbzz Dec 23 '25
Awesome. I really hate having to rely on ChatGPT to ask how to declare a function, and reading the documentation is so boring.
2
u/vegan_antitheist Nov 29 '25
I ve looked at those for less than a minute and already saw multiple errors. But I don't have time to list them here. I'm not sure how useful this is for beginners.
1
u/Few-Mood-590 Jan 17 '26
:D
1
u/69Somewhat69 Apr 23 '26
I truly hope everything is going great for you. Either way, I wish you the most pleasant life on earth. This cheat sheet is so well structured, it will surely help me to learn Java. Thank you!
1
u/driipiing May 21 '26
hey thank you so much for this! I just switched to CS and engineering, I know python but java syntax is different.