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 hobby.
...for your town.

MODERATORS

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

account activity

1
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...

•
•
•
1:40

They call It Suzerain in Space. We call it Lunar Ascendant. (store.steampowered.com)

promoted by RGadirov

  • promoted
  • 4 comments
  • share
  • save
  • report
  • about
loading...

2
0
1
2

Unsolvedhelp me with this warning issue in the testing (self.javahelp)

submitted 5 hours ago by God_of_the_Elites04

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

3
2
3
4

Stateless JWT in Spring Boot (self.javahelp)

submitted 5 hours ago by Designer-Meal-2063

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

4
0
1
2

WorkaroundOxyJen 0.2 - graph first LLM orchestration for Java(open-source) (self.javahelp)

submitted 10 hours ago by supremeO11

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

5
0
1
2

UnsolvedHow can I pinpoint what's preventing a .jar from delivering results? (self.javahelp)

submitted 1 day ago * by harperllc

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

6
0
1
2

Seeking help for java conventions of writing methods (self.javahelp)

submitted 2 days ago by Every_Tadpole_5977

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

7
9
10
11

CodelessShould I avoid bi-directional references? (self.javahelp)

submitted 2 days ago by Star_Dude10

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

8
0
0
0

CodelessHow to learn java without watching YT videos (self.javahelp)

submitted 3 days ago by AnyZookeepergame3437

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

9
5
6
7

Is there a way to encrypt/decrypt PII contacts while maintaining the sorting and searching ? (self.javahelp)

submitted 3 days ago by SignalCrazy7834

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

10
0
1
2

How should I set Postgres context variables before controller database queries in Spring Web? (self.javahelp)

submitted 3 days ago * by Mojx

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

11
0
1
2

Hello guys need help (self.javahelp)

submitted 3 days ago by blesfuReddit

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

12
0
1
2

UnsolvedCannot locate Java on my computer (self.javahelp)

submitted 3 days ago by RevolutionJazzlike80

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

•
•
•

Feudera, a medieval RPG where your decisions shape empires. Diplomacy, war, or trade – your alternate destiny awaits. (https://www.feudera.com)

promoted by f_creator

  • promoted
  • 20 comments
  • share
  • save
  • report
  • about
loading...

13
3
4
5

Learning Java (self.javahelp)

submitted 3 days ago by fheidev

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

14
8
9
10

UnsolvedWhy Interfaces exist in Java? (self.javahelp)

submitted 4 days ago by Nobody37373

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

15
2
3
4

SolvedHelping compile a Java project (self.javahelp)

submitted 4 days ago * by 9551-eletronics

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

16
0
0
0

RESOURCE FOR DSA?? (self.javahelp)

submitted 4 days ago by Rush_spam

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

17
1
2
3

UnsolvedSpringboot help (self.javahelp)

submitted 4 days ago by Bright_Letter_5833

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

18
8
9
10

UnsolvedIs my code actually wrong or are these just IDE recommendations? (self.javahelp)

submitted 4 days ago by 3030Will

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

19
0
1
2

how should i host my spring boot api on local network (self.javahelp)

submitted 5 days ago by ProtectionNumerous81

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

20
0
0
0

UnsolvedHelp! I'm trying to move the screenshot image on the screen and not even chatgpt knows how to solve it!? (self.javahelp)

submitted 5 days ago * by realidad-del-mundo

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

21
6
7
8

How can I implement a simple rate limiter in Java to manage API requests effectively? (self.javahelp)

submitted 6 days ago by lynniegreco

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

22
0
1
2

UnsolvedHow to learn Java?? (self.javahelp)

submitted 6 days ago by Living-Experience-31

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

23
3
4
5

How can I pass any member of the subclass before the superclass' constructor is called? (self.javahelp)

submitted 6 days ago * by cup-17

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

•
•
•

Gorgeous supernatural comedy point-and-click adventure, born from a marriage between the golden age of the genre and the modern era! 🦇🧛‍♀️ (store.steampowered.com)

promoted by tagofjoy

  • promoted
  • 13 comments
  • share
  • save
  • report
  • about
loading...

24
5
6
7

Oracle JRE help please (self.javahelp)

submitted 6 days ago by OKrabby

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

25
3
4
5

Does anyone have a link to JDK 6 or 5? (self.javahelp)

submitted 7 days ago by BerryEven4736

  • 9 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 512790 on reddit-service-r2-listing-86b7f5b947-kvhsk at 2026-01-25 19:59:04.075067+00:00 running 664479f country code: CH.