Compiling
Nobody has said anything yet. Be the first.
Programming humour and developer memes
The universal excuse. Memes, shitposts and the joke that only lands if you have used git. Keep it kind.
Punch up, not down
Laugh at tools, deadlines and yourself. Not at beginners.
Bring the detail
Versions, error text, what you already tried. "It does not work" is not a question anyone can answer.
No drive-by self promotion
Share your own work when it answers the thread. A link with no context is a advert, and it gets removed.
Nobody has said anything yet. Be the first.
Help for beginners and people learning new languages. No gatekeeping.
Showing 5 posts.
Hello, I am CS student in Thessaloniki, learning Java for my exam. I found something strange and my professor only said "look it up" xD Integer a = 127; Integer b = 127; System.out.println(a == b); // true Integer c = 1000; Integer d = 1000; System.out.println(c == d); // false ;; Why the same code gives different result; Is it a bug in my JDK (Temurin 21); Should I always use equals for Integer; Thank you!
Hello, I have a question to you. In my Ausbildung company we have a WinForms tool (yes WinForms xD). I made a button that loads customers from our internal API. When the API is down, nothing happens. No error, no MessageBox, the grid just stays empty. private async void btnLoad_Click(object sender, EventArgs e) { try { LoadData(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private async Task…
Accepted answer
Good morning all. It is 5.30 am here, the kids are not awake yet, so I am posting before the chaos starts 🙂 I was a Java developer at a service company till 2018: mostly Java 8, Spring 4 with XML configuration, and Struts on one old project (kindly do not laugh). After a seven year break I am preparing to return to work. Now I see Java 21 everywhere: records, var, sealed classes, pattern matching, virtual threads.…
Accepted answer
Students learn binary search as "find x in a sorted array" and then get stuck on questions where nothing is sorted. The trick is that you are not searching the array. You are searching the answer . The problem You have packages with weights w[i] that must be shipped in order. A ship carries them over D days, loading packages in order each day until the next one would exceed its capacity. What is the minimum capacity…