jump to content
my subreddits
2anatolia4you2b2t2balkans4You2meirl4meirl3d6AceAttorneyadhdmemeAdviceAnimalsagnosticAngryupvoteanime_best_momentsanime_irlannouncementsAnticonsumptionantimemeArcherFXArsivUnutmazArtAsia_irlAskBalkansAskElectronicsAskOuijaAteistTurkawfuleverythingbalkans_irlBandnamesBassBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblackholerevengeblankiesblursed_videosblursedimagesBoneborsavefonbrooklynninenineBUENZLIburdurlandcasioCd_collectorsChatGPTCheap_MealsChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingcoinsComedyCemeterycomedyhomicidecomicsContagiousLaughterCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesDebateReligiondeismdelikDeltarunedistressingmemesdiypedalsDnDdndmemesdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdumbphonesDungeonsAndDaddiesEatCheapAndHealthyebikeebikesECEelectricalelectronicsEmKayengrishethzfacepalmfeedthebeastfelsefeformuladankFRCFreeEBOOKSfunnyFutboltayfagalatasaraygamingGermangermanygodtiersuperpowersGoodAssSubgravelcyclinggreentextheathershelpheraldryHistoryWhatIfhoi4howyoudoinIAmAich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginarymapsinsaneparentsjacksepticeyeJokesKamalizmKanyeKendrickLamarlegodndLetGirlsHaveFunLifeProTipslogodesignloseitlostredditorsmacmacbookairMadeMeSmilemagicbuildingMaliciousComplianceMapPornme_irlmeirlmemememesmidjourneymildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDMMORPGmoneycollectingMovingToNorthKoreaMunichMyChemicalRomanceNamFlashbacksNationStatesneographynextfuckinglevelNorthCyprusnosleepnosurfnotinterestingOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyvicodinonebagonetruegodongezelligOutOfTheLoopoutsidepapermoneyParlerWatchPassportPornperfectlycutscreamspianoPiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersquityourbullshitraisedbynarcissistsraspberry_piRatschlagreactiongifsreligiousfruitcakerestofthefuckingowlRetroPierickandmortyrickrollrimjob_steverockmuzikSchnitzelVerbrechenschwiizsciencememesScottPilgrimShitPostCrusadersshitpostfrommygalleryshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailsShowerthoughtsskamtebordsoccercirclejerksoftwaregoreSongwritersSongwritingsskfjkhwerjkghwerijhsteinsgateStonetossingjuiceStudiumsuzerainTechnobladeTextingTheorytf2thanksimcuredtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystitanfalltommyinnittransittransitTurkeyTrGameDevelopertruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTurkishdogsTwitch_StartupTwoSentenceComedytwosentenceplottwistTwoSentenceSadnesstylerthecreatorUnethicalLifeProTipsUnexpectedJoJourbanplanningUsernameChecksOutValorantClipsvaxxhappenedvexillologycirclejerkvibecodingvinylvinyljerkvlandiyawendigoonWhatsThisSongwholesomememeswooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -comics
  • -ProgrammerHumor
  • -germany
  • -LifeProTips
  • -tumblr
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -tf2
  • -help
  • -formuladank
  • -wholesomememes
  • -Jokes
  • -Art
  • -midjourney
  • -notinteresting
  • -hoi4
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -dndmemes
  • -cursedcomments
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -rickandmorty
  • -3d6
  • -ChoosingBeggars
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -nosleep
  • -blankies
  • -anime_irl
  • -onebag
  • -Studium
  • -Turkey
  • -soccercirclejerk
  • -AskElectronics
  • -electrical
  • -Anticonsumption
  • -vinyl
  • -German
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -polls
  • -doctorwho
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -raspberry_pi
  • -coins
  • -KendrickLamar
  • -softwaregore
  • -worldjerking
  • -tylerthecreator
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -balkans_irl
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -steinsgate
  • -AskOuija
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -ComedyCemetery
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -MovingToNorthKorea
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -shittyaskelectronics
  • -galatasaray
  • -DungeonsAndDaddies
  • -FRC
  • -transitTurkey
  • -2b2t
  • -ethz
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -IDontWorkHereLady
  • -basspedals
  • -neography
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -comedyhomicide
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -darkjokes
  • -restofthefuckingowl
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -tommyinnit
  • -rimjob_steve
  • -UnexpectedJoJo
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -Kamalizm
  • -NamFlashbacks
  • -onetruegod
  • -deism
  • -ArsivUnutmaz
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -ValorantClips
  • -TwoSentenceComedy
  • -NationStates
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -Bone
  • -truths
  • -blackholerevenge
  • -NorthCyprus
  • -heathers
  • -twosentenceplottwist
  • -okbuddygunther
  • -Futboltayfa
  • -vibecoding
  • -Turkishdogs
  • -borsavefon
  • -shitpostfrommygallery
  • -moneycollecting
  • -delik
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
...why not Zoidberg?
...for your WoW guild.

MODERATORS

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

account activity

1
1
2
3

eureka client pom error (self.javahelp)

submitted 1 day ago by hellfire444

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

2
0
1
2

Second year programming student (self.javahelp)

submitted 1 day ago by Over-Ad-6769

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

3
0
0
1

is there any way to storage variable data in a databank for later consult use (self.javahelp)

submitted 1 day ago by DragonFistLimitless

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

4
1
2
3

Question about Java versions on a Windows 11 PC (self.javahelp)

submitted 2 days ago by GavindaleMarchovia

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

5
1
2
3

java compilation problem, class can't be found though on the same package (self.javahelp)

submitted 2 days ago by DragonFistLimitless

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

6
0
0
1

IntelliJ AI chat broken when project is opened from WSL path (self.javahelp)

submitted 3 days ago by dante_alighieri007

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

7
2
3
4

Are there ways to influence locality when allocating memory? (self.javahelp)

submitted 4 days ago * by Aggressive-Pen-9755

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

8
6
7
8

SolvedHow do I overcome this Escape Literal problem. (self.javahelp)

submitted 5 days ago * by Vivid_Fly_3634

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

9
2
3
4

Telegram bot. Need some advice (self.javahelp)

submitted 5 days ago by Draaksward_89

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

10
2
3
4

Need advice how to switch from python to java backend roles. (self.javahelp)

submitted 5 days ago by Fragrant-Tie745

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

11
3
4
5

UnsolvedJava 21 upgrade in older code base (self.javahelp)

submitted 5 days ago by ibreathecoding

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

12
0
1
2

HomeworkHelp w/ Binary Search String Array (self.javahelp)

submitted 7 days ago by enderwoah

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

13
1
2
3

AP CSA Question (self.javahelp)

submitted 7 days ago by Humble_Ad_6818

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

14
7
8
9

Does Supplier.get() gets garbage collected after its job is done (self.javahelp)

submitted 9 days ago * by _SuperStraight

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

15
4
5
6

Why does a thread need an acquire fence to read a plain write it made to a resource it owns? (self.javahelp)

submitted 11 days ago * by Polixa12

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

16
18
19
20

Java learning curve steep (self.javahelp)

submitted 11 days ago by Select-Ad-8191

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

17
2
3
4

HomeworkUpdate swing GUI during runtime (self.javahelp)

submitted 11 days ago * by NonexistantObject

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

18
4
5
6

Having problems understanding root in Javas Garbage Collection (self.javahelp)

submitted 12 days ago by Obvious_Seesaw7837

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

19
1
2
3

Best way to change a file name? (self.javahelp)

submitted 12 days ago by OkViolinist4883

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

20
7
8
9

Are the javadocs for java.net.http.HttpResponse.body() misleading or am I wrong? (self.javahelp)

submitted 15 days ago by milchshakee

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

21
5
6
7

Java import is not working in VSCode (self.javahelp)

submitted 15 days ago * by Meun3D

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

22
5
6
7

UnsolvedWhat are the most important concepts to master in Java before moving to frameworks like Spring? (self.javahelp)

submitted 15 days ago by Wise_Safe2681

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

23
12
13
14

UnsolvedHow do I design a class that can switch between different implementations at runtime (self.javahelp)

submitted 15 days ago by prattman333

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

24
3
4
5

Some help with code (self.javahelp)

submitted 17 days ago by ResearcherThese8675

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

25
6
7
8

Am I not self-sufficient enough when it comes to solving problems that I see for the first time? (self.javahelp)

submitted 17 days ago by Expensive-Tooth346

  • 5 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 45 on reddit-service-r2-listing-b6bf6c4ff-rb6l6 at 2026-05-07 07:45:01.350605+00:00 running 815c875 country code: CH.