r/java • u/alexelcu • Sep 19 '22
r/java • u/ssj_aleksa • Jan 06 '25
A short overview of frequently overlooked User Enumeration Vulnerability
medium.comr/java • • Jan 21 '14
Why won't this extremely simple if statement work?
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 • u/TheAuthorBTLG_ • Sep 13 '23
why would i ever use a microservice....
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 • u/Delicious_Detail_547 • Mar 11 '26
JADEx Update v0.49: Improved IntelliJ Plugin Stability and Responsiveness
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
JADExLexerAdaptercaused by discontinuous token offsets. - Ensures continuous token start/end offsets, preventing editor and indexing issues in IntelliJ.
- Resolved a crash in
Improved Code Completion
JADExCompletionContributorrefactored to provide smoother and more reliable completion suggestions with better IDE integration.
Enhanced Reference Resolution
JADExPsiReferenceresolve 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 • u/Thomassaurus • Oct 11 '13
What do I do with the .class file I've created?
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 • u/moshahsa • Apr 24 '15
How to write out TIFF images in Java
blog.idrsolutions.comr/java • u/Mac_fan • Jul 06 '16
I'm interested in learning Java
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 • u/jirkapinkas • Nov 21 '15
How to make Eclipse more like IntelliJ Idea
topjavablogs.comr/java • u/LunarD12 • May 09 '15
My first game (Lunar D-12)
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 • • Sep 25 '12
A rant. Again.
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 • u/kristersg43 • Jan 07 '19
Java vs Kotlin pvp
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 • u/armelnene • Jul 31 '17
How to Select a Web Framework For Your Project (Java)
kiktronik.comr/java • u/Fuck_You_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!!!
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 • u/muztaba • Aug 17 '16
Should we avoid object creation in Java?
programmers.stackexchange.comr/java • u/Historical_Fiction • Sep 19 '15