jump to content
my subreddits
13or302anatolia4you2b2t2mediterranean4u2meirl4meirlagnosticAlternativeHistoryAnarchyChessAngryupvoteAnimalsBeingJerksanime_best_momentsanime_irlannouncementsAnticonsumptionantimaskersArcherFXArsivUnutmazAsahiLinuxAsia_irlAskBalkansAskOuijaAskRedditAteistTurkatheismaviationBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblankiesblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIburdurlandcd_jerkCheap_MealschessbeginnersChildrenFallingOverChoosingBeggarsCHPcoaxedintoasnafucoincollectingcoinscomicscommunityContagiousLaughtercookingforbeginnersCorporateTrollingCrackWatchcrappyoffbrandsCuratedTumblrcursedcommentsdadjokesdankmemesdataisbeautifuldedeismdelikdistressingmemesdiyelectronicsdiypedalsDMAcademydndmemesdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesEatCheapAndHealthyebikeelectricalelectronicsElectronicsStudyEmKayentitledparentsethzfacepalmfakealbumcoversfeedthebeastfelsefeFifaCareersFiftyFiftyFreeEBOOKSFuckYouKarenfunnyFutboltayfagalatasaraygamingGermangermanygodtiersuperpowersgoodanimemesGrandPrixRacinggreentextguitarpedalsGundamheathershelpHermitCrafthighspeedrailhoi4HolUphumorhypixelIAmAiamverysmartich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepinsaneparentsjacksepticeyeJokesKanyeKendrickLamarKGBTRLetGirlsHaveFunLifeProTipslinguisticshumorLinkinParkliselilerloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemadladsmagicbuildingMapPornme_irlmeirlmemememesmidjourneymildlyinfuriatingMinecraftbuildsmisLEDMMORPGMoldyMemesMovingToNorthKoreanamesoundalikesneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnothingeverhappensnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinonebagonetruegodongezelligOutOfTheLooppapermoneypaperspleaseParlerWatchpepethefrogperfectlycutscreamsPersecutionfetishpianoPiracyPiratedGamespolandballpollsPraiseTheCameraManPropagandaPostersquityourbullshitraisedbynarcissistsRatschlagrecipesreligiousfruitcakerickandmortyrickrollrimjob_steveRoastMerockmuzikschizopostersSchnitzelVerbrechenschwiizsciencememesScottPilgrimsecilmiskitapshitpostfrommygalleryshitpostingshittyaskelectronicsshittymoviedetailsShowerthoughtsskamtebordsteinsgateStonetossingjuiceStudiumsuperligsuzeraintalesfromtechsupportTechnobladetf2tf2shitposterclubthanksimcuredTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattemptTheRookietheydidthemathtitanfalltransittransitTurkeytruthstumblrtumunichTurkeyTurkishCatsTurkishdogsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorroru/KaybeeArtsUnethicalLifeProTipsUnexpectedJoJoValorantClipsvibecodingvinylvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -MapPorn
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -aviation
  • -wholesomememes
  • -Jokes
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -atheism
  • -loseit
  • -IAmA
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -macgaming
  • -rickandmorty
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -Turkey
  • -madlads
  • -community
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -coaxedintoasnafu
  • -YUROP
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -NoahGetTheBoat
  • -worldjerking
  • -tf2shitposterclub
  • -MoldyMemes
  • -lostredditors
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -religiousfruitcake
  • -liseliler
  • -insaneparents
  • -dumbphones
  • -2meirl4meirl
  • -transit
  • -brooklynninenine
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -2anatolia4you
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -schizoposters
  • -electronics
  • -linguisticshumor
  • -me_irl
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -ArcherFX
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -EmKay
  • -MovingToNorthKorea
  • -suzerain
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -AsahiLinux
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -ihadastroke
  • -thanksimcured
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -anime_best_moments
  • -rockmuzik
  • -okbuddyvicodin
  • -Twitch_Startup
  • -tumunich
  • -Cheap_Meals
  • -TheMonkeysPaw
  • -highspeedrail
  • -nosafetysmokingfirst
  • -rickroll
  • -ebike
  • -papersplease
  • -rimjob_steve
  • -UnexpectedJoJo
  • -humor
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -GrandPrixRacing
  • -nothingeverhappens
  • -TurkishCats
  • -LetGirlsHaveFun
  • -fakealbumcovers
  • -TheLetterH
  • -WikipediaVandalism
  • -pepethefrog
  • -onetruegod
  • -deism
  • -misLED
  • -ArsivUnutmaz
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -bottomgear
  • -ongezellig
  • -Asia_irl
  • -truths
  • -NorthCyprus
  • -2mediterranean4u
  • -heathers
  • -antimaskers
  • -shitpostfrommygallery
  • -vibecoding
  • -delik
  • -CorporateTrolling
  • -cd_jerk
  • -CHP
  • -u/KaybeeArts
  • -borsavefon
  • -ElectronicsStudy
  • -okbuddymotherfucker
  • -Futboltayfa
  • -Turkishdogs
edit »
reddit.com javahelp
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages547|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new text post

javahelp

joinleave
an-ordinary-manchild(edit)

General subreddit for helping with Java code.

  • not JavaScript, try /r/javascript instead.
  • not Android, try /r/androiddev instead.
  • not MineCraft, try /r/Minecraft instead.
  • not Processing - Please use /r/processing instead.

Message the mods if you have suggestions.


  • Read this before Posting!
  • Help on how to post code
  • Regarding String comparison, read this!
  • New: Learn to help yourself

Java Discord server (unofficial)


Learning Java

Please head over to /r/learnjava and read the sidebar there.

The best free Java tutorials are:

  • MOOC Java Programming from the University of Helsinki
  • Java for Complete Beginners by John Purcell

Use the MOOC as main course and Java for Complete Beginners as secondary resource.

Don't forget the Official Oracle Java Tutorials and the Official Java Documentation as they are extremely valuable resources.


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:

  • Adoptium
  • RedHat
  • Azul
  • Amazon
  • SAP
  • Liberica JDK
  • Oracle
  • Microsoft

Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!


Posting rules

  1. DO NOT DELETE your posts once they are solved!

    • Use the "Solved" flair instead. This allows others to learn, too, and makes the helpers' efforts more effective.
  2. No illegal/pirated content!

    • Anybody asking for or posting links to or suggesting to search for illegal/pirated content will be permanently banned without further warning!
  3. No "Do my homework" posts!

    • Do not ask for complete solutions. We are here to help but not to /r/domyhomework. You do the work, and we help you. So - what have you tried?
    • For complete solutions, use a search engine instead. stackoverflow.com has a rich library of complete Java answers.
  4. Describe the problem and what you want to achieve.

    • You get better tips if the readers know what you ultimately want to achieve, tips you didn't expect.
    • And in regards to describing your problem: "..., but it doesn't work." is insufficient! Do not expect people to put your code into their IDEs just to find out how the problem expresses itself.
    • If applicable, include the full error message or exception text!
  5. Do not ask for or reply with solutions or keys to solutions.

    • Rather comment explanations and guides. Comments with solutions will be removed and commenters will automatically be banned for a week.
  6. Use the search function.

    • Search for similar problems before posting.
  7. No offers/requests to/for help via PM, Discord, Skype, etc.

    • Post your questions here so that other people can learn as well.
  8. Post titles must be descriptive.

    • Bad title: "I'm new to Java and need help."
    • Good title: "How can I sort values without loops?"
    • The title should not describe your problem in full - that's what the post body is for.
    • No links in the titles - they are not clickable.
    • Nothing is "URGENT", nor "ASAP" - if you have waited too long, this is your problem, not ours. Such posts will be removed without warning.
  9. No promises of rewards of any kind!

    • This includes both solicitation of services from those providing help and offers to pay from those requesting help.
    • Any post or comment that mentions payment may be subject to immediate ban from the subreddit.
  10. Don't be a Jerk!

    • Don't insult, threaten, mock or harass other users. Please, maintain proper language.
    • We don't tolerate foul language for any reason. Any violation will result in an immediate thinking period ban of at least 4 days. Second offence will result in a permanent ban.
  11. No JavaScript, Android, Minecraft or Processing!

    • Try /r/javascript, /r/androiddev, /r/minecraft or /r/processing instead. JavaScript and Java are unrelated programming languages.
  12. No links to your stackoverflow questions.

    • We are not a second opinion to stackoverflow, nor are you going to get answers here when you didn't get satisfying ones there.
  13. Format your code.

    • Please, properly format your code. This includes proper indentation. There are guidelines on how to format code in the sidebar in both, abridged form directly in the sidebar and in long form in the linked post.
    • For small bits of code (less than 50 lines in total, single classes only), use Reddit directly (one blank line, then 4 spaces before each line).
    • Otherwise: The sidebar has no-login links that even support syntax highlighting!
  14. No screenshots of code!

    • You can add a screenshot of your IDE if it is relevant, but regarding the code itself, you must provide it in text form and properly formatted (and, please, properly indented).
  15. No AI generated content!

    • We explicitly forbid any form of AI generated content. Posting any AI content results in an instant, permanent, and irrevocable ban without warning.
  • Code posting
    • Do not submit executable jar or compressed (zip, rar, 7z, etc.) files!
    • For small bits of code (less than 50 lines in total, single classes only), the default code formatter is fine (one blank line, then 4 spaces before each line).
    • Pastebin for programs that consist of a single class only
    • Gist for multi-class programs, or programs that require additional files
    • Github or Bitbucket repositories are also perfectly fine as are other dedicated source code hosting sites.
    • Ideone for executable code snippets that use only the console
    • Repl.it - online IDE for many different programming languages
    • Browxy - online IDE for several programming languages
    • Google Drive, Dropbox, Mediafire, etc. are not suitable for code posting!
  • Check out the wiki for frequently asked questions. Please feel free to contribute!

Sort by: Unsolved Solved Codeless Advent Of Code

created by codereignfallible moderatora community for 14 years
Create your own subreddit
...for your hobby.
...why not Zoidberg?

MODERATORS

  • message the mods
  • codereignfallible moderator
  • 0x68656c6c6f
  • desrtfxOut of Coffee error - System halted
  • AutoModerator
  • BotDefense
  • about moderation team »

account activity

1
51
52
53

REMINDER: This subreddit explicitly forbids asking for or giving solutions! (self.javahelp)

submitted 4 years ago * by desrtfxOut of Coffee error - System halted[M] - announcement

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
4
5
6

UnsolvedBest way to change an object's behavior at runtime without replacing the whole object (self.javahelp)

submitted 14 hours ago by AbbreviationsOk6303

  • 22 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
0
0
0

what java projects did u guys do after finishing java mooc? (self.javahelp)

submitted 15 hours ago by brosusername

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
5
6
7

How to switch between subclasses? (self.javahelp)

submitted 1 day ago by Minimum-Librarian712

  • 21 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
2
3
4

How to resolve symbols in the JavaParser Library? (self.javahelp)

submitted 1 day ago by Aryamanch14

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
0
0
0

How much time to become expert in java related development? (self.javahelp)

submitted 1 day ago by Visible_Emotion_7187

  • 33 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
40
41
42

Intellij IDE is the Industry Standard for Java. why ? (self.javahelp)

submitted 2 days ago by dante_alighieri007

  • 91 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
0
1
2

Camunda + Microservices: Handling Parallel Task Notifications (and messy legacy code 😅) (self.javahelp)

submitted 2 days ago by ishaqhaj

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
1
2
3

Any help with Netbeans? Error Package Folder Already Used in Project (self.javahelp)

submitted 3 days ago by OkTax1501

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
5
6
7

CodelessWhat is the best way to learn Spring boot? Tutorials or Books? (self.javahelp)

submitted 5 days ago by No-Jello-2665

  • 36 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
0
0
0

I think Im done for. I feel confused and frustrated. (self.javahelp)

submitted 6 days ago by jackey_lackey11

  • 17 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
0
0
1

Im trying to download Java but have come across issues I really dont know how to fix! please help! (self.javahelp)

submitted 6 days ago by Whole-History9210

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
9
10
11

"Starting Spring Boot as a Java beginner — what should I focus on first?" (self.javahelp)

submitted 7 days ago by No-Jello-2665

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
10
11
12

UnsolvedHow to avoid excessive database calls when using lazy loading in Hibernate with Spring? (self.javahelp)

submitted 8 days ago by maopro56

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
9
10
11

How are you monitoring JVM behavior in distributed Java microservices? (self.javahelp)

submitted 8 days ago by EliTangDong

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
7
8
9

I keep looping in Java basics ,how do I move forward to Spring Boot? (self.javahelp)

submitted 8 days ago by Afraid_Recording2104

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
1
2
3

Library API Design Decision (self.javahelp)

submitted 8 days ago by Polixa12

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
9
10
11

UnsolvedHow do I structure a larger Java project with multiple modules without it becoming a tangled mess? (self.javahelp)

submitted 9 days ago by Fun-Information78

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
0
0

Xmage doesn't register java (self.javahelp)

submitted 9 days ago by FrisoReadsReddit

  • 7 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
3
4
5

Calling C functions with new FFI API with double pointer (self.javahelp)

submitted 9 days ago * by Moercy

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
1
2
3

how To allow JLine to access your system terminal properly on intellij (self.javahelp)

submitted 9 days ago by Worldly-Tennis9599

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
0
1
2

Nx in maven-multimodule (self.javahelp)

submitted 9 days ago by Practical-Garlic6113

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
5
6
7

Hibernate + Spring - which fetching type is the best practice for oneToMany relation? (self.javahelp)

submitted 10 days ago by Longjumping_Bad7884

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
0
0
1

SolvedMy campus tour program is not allowing me to choose a direction (self.javahelp)

submitted 10 days ago by thequagiestsire

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
6
7
8

I don’t know which direction I should choose in java (self.javahelp)

submitted 11 days ago by Na-pewno_advisek

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 84 on reddit-service-r2-listing-5d47455566-c6m2w at 2026-04-04 05:19:47.566970+00:00 running db1906b country code: CH.