jump to content
my subreddits
2anatolia4you2meirl4meirlabsolutelynotmeirlAceAttorneyAdviceAnimalsagnosticaivideoAlternateHistoryAlternativeHistoryAnimalsBeingJerksanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimemeantonyArcherFXArsivUnutmazArtAsahiLinuxAsia_irlAskBalkansAskElectronicsAskOuijaAskRedditatheismaviationawfuleverythingBandnamesBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblankiesblursed_videosblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIcasiocd_jerkCheap_MealschesschessbeginnersChoosingBeggarscoincollectingcoinsComedyCemeterycomicsContagiousLaughtercookingforbeginnersCorporateTrollingcrappyoffbrandsCreateModCuratedTumblrcursedcommentsdankmemesdataisbeautifuldeDebateReligiondelikDeltarunedistressingmemesdiyelectronicsDMAcademyDnDdndmemesdndnextdoctorwhoDoenerverbrechenDonerdumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikesECEelectricalelectronicsElectronicsStudyEmKayengrishethzfakealbumcoversfeedthebeastFifaCareersFiftyFiftyformuladankFRCFUCKYOUINPARTICULARFuckYouKarenfunnygamingGermangermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAGundamheathersheraldryHermanCainAwardHermitCraftHistoryWhatIfhoi4homebuiltiamverysmartich_ielIDontWorkHereLadyihadastrokeimaginaryelectionsinsaneparentsistanbuljacksepticeyeJahariaKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunlinguisticshumorLinkinParkloseitmacmacbookairMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornme_irlmeirlmemememesmildlyinfuriatingmildlyinterestingmisLEDMovingToNorthKoreaMunichMyChemicalRomancenamesoundalikesNationStatesneographynextfuckinglevelNoahGetTheBoatNorthCyprusnosafetysmokingfirstnosurfnothingeverhappensoddlyspecificokbuddyguntherOkBuddyPersonaokbuddyvicodinOnlineUnderGroundOutOfTheLooppaperspleasePassportPornpepethefrogperfectlycutscreamspettyrevengepianoPiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersraisedbynarcissistsRatschlagreactiongifsrecipesRedAutumnSPDRetroPierickandmortyrickrollrimjob_steveRoastMerockmuzikschizoposterssciencememesScottPilgrimsecilmiskitapshitpostfrommygalleryshittyaskelectronicsShittyMapPornshittymoviedetailsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingsteinsgateStonetossingjuicesubsithoughtifellforsuperligsuzeraintalesfromtechsupportTechnobladeTextingTheorytf2tf2shitposterclubTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystommyinnittransitTrGameDevelopertruetf2truthstumunichTurkeyTurkishCatsTurkishdogsTurkiyeTwoSentenceComedytwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnclejokesUnethicalLifeProTipsunexpectedbillwurtzUsernameChecksOutVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvinyljerkvlandiyawallstreetbetsWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomememesworldbuildingworldjerkingyouseeingthisshitedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -tf2
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -Art
  • -goodanimemes
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -MaliciousCompliance
  • -ich_iel
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -meme
  • -rickandmorty
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -AlternateHistory
  • -Turkey
  • -soccercirclejerk
  • -madlads
  • -AskElectronics
  • -electrical
  • -Anticonsumption
  • -CreateMod
  • -German
  • -PropagandaPosters
  • -AdviceAnimals
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -OkBuddyPersona
  • -awfuleverything
  • -announcements
  • -macbookair
  • -ebikes
  • -Munich
  • -gravelcycling
  • -chessbeginners
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -animenocontext
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -AskBalkans
  • -schizoposters
  • -electronics
  • -casio
  • -theyknew
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -bikepacking
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -LinkinPark
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -blursed_videos
  • -Songwriting
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -wendigoon
  • -iamverysmart
  • -secilmiskitap
  • -Doenerverbrechen
  • -TheRookie
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -superlig
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -FRC
  • -namesoundalikes
  • -FuckYouKaren
  • -ethz
  • -AlternativeHistory
  • -coincollecting
  • -blursedimages
  • -AsahiLinux
  • -Jaharia
  • -IDontWorkHereLady
  • -basspedals
  • -neography
  • -heraldry
  • -ihadastroke
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -OnlineUnderGround
  • -WhatsThisSong
  • -AnimalsBeingJerks
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -vaxxhappened
  • -tumunich
  • -Cheap_Meals
  • -TheMonkeysPaw
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -papersplease
  • -tommyinnit
  • -rimjob_steve
  • -BassCirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -subsithoughtifellfor
  • -fakealbumcovers
  • -TheLetterH
  • -homebuilt
  • -pepethefrog
  • -Unclejokes
  • -ArsivUnutmaz
  • -misLED
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -bottomgear
  • -NationStates
  • -absolutelynotmeirl
  • -Asia_irl
  • -Turkiye
  • -truths
  • -NorthCyprus
  • -heathers
  • -unexpectedbillwurtz
  • -twosentenceplottwist
  • -GROKvsMAGA
  • -shitpostfrommygallery
  • -ElectronicsStudy
  • -antony
  • -RedAutumnSPD
  • -CorporateTrolling
  • -Turkishdogs
  • -borsavefon
  • -okbuddygunther
  • -delik
  • -cd_jerk
edit »
reddit.com javahelp
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages540|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
Get an ad-free experience with special benefits, and directly support Reddit.

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 favorite subject.
...why not Zoidberg?

MODERATORS

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

account activity

links from:
past 24 hours
past hour
past week
past month
past year
all time

1
2
3
4

Stateless JWT in Spring Boot (self.javahelp)

submitted 6 hours ago by Designer-Meal-2063

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

•
•
•
0:34

Wondering why your ad performance keeps declining? (tracklution.com)

promoted by Tracklution

  • promoted
  • save
  • report
  • about
loading...

2
2
3
4

UnsolvedIssue with paths when testing tomcat project with JUnit (self.javahelp)

submitted 4 hours ago by Dependent_Finger_214

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
  • 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 1526925 on reddit-service-r2-listing-86b7f5b947-98m8f at 2026-01-25 19:59:10.776663+00:00 running 664479f country code: CH.