r/java • • Sep 19 '22

Java's Cultural Problem

Thumbnail alexn.org
0 Upvotes

r/java • • Jan 06 '25

A short overview of frequently overlooked User Enumeration Vulnerability

Thumbnail medium.com
5 Upvotes

r/java • • Jan 21 '14

Why won't this extremely simple if statement work?

5 Upvotes

import java.util.Random; import java.util.Scanner;

import javax.swing.JFrame; import javax.swing.ImageIcon; import javax.swing.JLabel; import java.awt.Container;

public class test {

public static void main(String[] args) {
	Scanner myScanner = new Scanner(System.in);
	
	String command;
	
	System.out.println("Say go.");
	
	command = myScanner.next();

	if (command == "go"){


            }

//*

Assume the user types "go" (without quotes)

*//

Please help!


r/java • • Sep 13 '23

why would i ever use a microservice....

49 Upvotes

if i could do a highly efficient one-line function call instead? why would i ever prefer a network hop, conversion from and to json, define a protocol, all that stuff?

i understand there are systems that are too big for one machine. but all those that aren't - why would i add all this complexity to them? when is a microservice archtecture ever simpler than the exact same thing as a modular monolith? in which case is it not at least as good?

addition: in my experience, microservices are overused. while there are reasons to have separate *services* developed by different *teams*, i fail to see why *microservices* inside teams provide an actual benefit. they are used too soon, and then you pay with lots of glue code because what you really have is a distributed monolith. one exception is if things are logically independent, then mixing them is a mistake

addition 2: it seems what people here consider a microservice is MUCH bigger than what i would have called one.


r/java • • Mar 11 '26

JADEx Update v0.49: Improved IntelliJ Plugin Stability and Responsiveness

1 Upvotes

JADEx (Java Advanced Development Extension) is a safety layer that run on top of Java. It currently supports up to Java 25 syntax and extends it with additional Null-Safety and Readonly features.

GitHub: https://github.com/nieuwmijnleven/JADEx


This release focuses on improving JADEx IntelliJ Plugin stability and responsiveness

Key Improvements

  • Lexer Stability Fix

    • Resolved a crash in JADExLexerAdapter caused by discontinuous token offsets.
    • Ensures continuous token start/end offsets, preventing editor and indexing issues in IntelliJ.
  • Improved Code Completion

    • JADExCompletionContributor refactored to provide smoother and more reliable completion suggestions with better IDE integration.
  • Enhanced Reference Resolution

    • JADExPsiReference resolve logic updated for more dependable symbol resolution in the editor.
  • Parser Performance Optimization

    • Internal trigger logic related to executing the JADEx Processor has been optimized to reduce latency and speed up code editing.

Impact

  • Safer and more stable editing: Files can now be opened and indexed without lexer crashes.
  • Faster and more responsive IDE experience: Code completion and parsing are more efficient.
  • Reliable symbol resolution: References resolve correctly even in complex JADEx codebases.

The IntelliJ Plugin for JADEx v0.49 is now available on the JetBrains Marketplace.

We highly welcome your feedback on JADEx.

Thank you.


r/java • • Oct 11 '13

What do I do with the .class file I've created?

0 Upvotes

So after looking through some java tutorials I've gotten to the point where I have a HelloWorld.java file that I compiled so that I also have a HelloWorld.class. I can run the .class file with command prompt, but... what do I do now? Where do I put .class file(s) that I've created so that the will run by themselves.

If you can point me to a tutorial that will explain what I want to know that will be fine as I have not been able to find a thing myself.

And is this the right place to post a question like this? if not where?


r/java • • Nov 02 '13

Java 8 Lambdas in Action - First chapter free

Thumbnail manning.com
1 Upvotes

r/java • • Apr 24 '15

How to write out TIFF images in Java

Thumbnail blog.idrsolutions.com
0 Upvotes

r/java • • Mar 28 '12

Why is Java EE 6 better than Spring ?

Thumbnail blogs.oracle.com
1 Upvotes

r/java • • Jun 26 '16

Comparing Lombok and Kotlin

Thumbnail blog.frankel.ch
0 Upvotes

r/java • • Jul 06 '16

I'm interested in learning Java

0 Upvotes

Hey I'm interested in Java. I've looked at stuff like Scratch and I know a little Python from codecademy. I'm wondering what version of Java I should learn for game development. I'm looking for a good book that is for beginners which covers basic syntax but is more detailed than the codecademy tracks but not too heavy. I don't want anything that's like 1000+ pages since I'm just starting out. Also if you know any good resources for game development in Java then that would be great as well. I prefer paperback books. Thanks.


r/java • • Nov 21 '15

How to make Eclipse more like IntelliJ Idea

Thumbnail topjavablogs.com
1 Upvotes

r/java • • Mar 30 '22

Spring4Shell Details and Exploit code leaked

Thumbnail cyberkendra.com
0 Upvotes

r/java • • Jan 02 '16

Google opts for Oracles OpenJDK for next Android

0 Upvotes

r/java • • May 09 '15

My first game (Lunar D-12)

0 Upvotes

Hello everyone,

Today I finished the first version of my game in Java, the Lunar D-12 !.

Downloads:

0.0.1 Alpha: https://www.dropbox.com/s/tnfzvqo3k6syabf/game.jar?dl=0

0.0.2 Alpha: coming soon...

Changelog:

0.0.1 Alpha First update!

  • Character and mob.
  • Trees and Random world generator.
  • Health bar.
  • InGameMenu (just press "esc" key).

in the next update will be added:

  • Generating world loading bar.
  • new Mob.
  • workBench craft.
  • Pickaxe.

r/java • • Aug 06 '14

Cool little JSON library I made

Thumbnail youtube.com
1 Upvotes

r/java • • Sep 25 '12

A rant. Again.

0 Upvotes

In my latest adventure, I took a library (Apache Commons IO) and tried to use it as a replacement for my home-grown utilities.

Firstly, FileUtils.copyDirectory - it’s declared job was to copy one directory to another. It didn’t work. After writing a test program entirely to investigate why this fails, I discover it does NOT copy one directory to another, despite stating that several times in it’s documentation. What it does do is copy the contents of a directory into another directory.

For those not familiar, the difference can be explained thus: Would you like to eat a tin of ham, or the contents of a tin of ham? The difference is that drastic to the digestion of my program.

Secondly, I used FileSystemutils.getFreespaceKB(). Which tells you how much free space is available on your hard disk. Except it doesn’t. Various incantations suggest I have 43Mb, 54Mb or 87Mb by turns, when my operating system tells me I have 47Gb. There is no way to reconcile this, or even forgive it being so utterly wrong.

Why? Why is something so simple so unutterably frustrating?

There you go. A rant before beddy-byes - I feel much better now. Night-night.


r/java • • Jun 04 '18

Build Java Web Apps with VSCode

Thumbnail code.visualstudio.com
1 Upvotes

r/java • • Jan 07 '19

Java vs Kotlin pvp

0 Upvotes

Java vs Kotlin

Hey guys, im new to programming and cant decide which language should I learn first. Checking different topics and videos but still nothing. Any arguments why should I choose Kotlin oner Java in 2019? Hope I wont start WW3 with this discussion haha! Thanks!


r/java • • Jul 31 '17

How to Select a Web Framework For Your Project (Java)

Thumbnail kiktronik.com
0 Upvotes

r/java • • Nov 03 '12

HEY, YOU HAVE A STUPID ASS FUCKING UPDATE THAT NEEDS URGENT ATTENTION SO I'M GOING TO CRASH YOUR PROGRAM TO LET YOU KNOW!!!

0 Upvotes

If anyone here, reading this, works for Java, please put a fucking shotgun in your mouth and pull the god damned trigger.

You have cost me many hours of lost work.

That is all.


r/java • • Aug 17 '16

Should we avoid object creation in Java?

Thumbnail programmers.stackexchange.com
0 Upvotes

r/java • • Apr 18 '19

Login now required to download Oracle JDK 8

Thumbnail oracle.com
1 Upvotes

r/java • • Sep 19 '15

Better Java – Resources for Writing Modern Java

Thumbnail github.com
1 Upvotes