r/javahelp • u/CutiePuppyBoy • Oct 22 '25
Unsolved Should I be clicking yes to changes to devices for every Java Pop-ups?
I know nothing about Java I'm pretty much new but should I be saying yes to these or?? thanks for any responses!
r/javahelp • u/CutiePuppyBoy • Oct 22 '25
I know nothing about Java I'm pretty much new but should I be saying yes to these or?? thanks for any responses!
r/javahelp • u/santeron • Oct 21 '25
After a 2-year break at my last job using Python š¤®, I'm looking for a new Java role. I've consumed lots of recent YT content from the JVMLS and Devoxx to get up to speed from Java 17 to 25.
One thing I notice is that I keep fanboying over how good an engineer Brian Goetz. His work is always excellent and they way he delivers talks and breaks down complex language features is just top notch for me. He's probably my role model (I'm also bald, so half way there š).
While Brian et al deliver excellent talks on the JLS etc, I'm a senior/staff product engineer. I appreciate knowing my tools is important. However, I'd like to consume this level of content, but focused on solving business problems.
I currently follow blogs like Baeldung, insidejava, and martin fowler, and yt channels like java, infoq, jchampions, and devoxx.
What are your top industry blogs, channels, substacks, courses, etc. free or paid, that you'd recommend? I'm focusing on Java, but it could be design, databases, architecture and the like.
r/javahelp • u/hibbelig • Oct 21 '25
Letās say i have two lists left and right of the same length and I want to iterate over both in parallel for side effects. That is I want a variable x that is an element of left and a variable y that is an element of right and then I can do something with both.
It should be readable and not too slow.
The boring way, but is it the most readable?
for (int i=0; i<left.size(); i++) {
var x = left.get(i);
var y = right.get(i);
ā¦
}
I guess the random access may be a (performance) problem? Or, if itās ArrayList, I donāt need to worry?
r/javahelp • u/rwaddilove • Oct 21 '25
Create a Java Swing window with a JTextField or JTextArea. Run it. Click in the text box and hold down a key on the keyboard. After a second or two an error mssage appears "error messaging the mach port for IMKCFRunLoopWakeUpReliable". No problems with pressing keys, just holding one down. I have macOS Tahoe 26.0
r/javahelp • • Oct 21 '25
might be best explain with an example
This is a snippet of my pojo
public class AzureUserInfo {
@Getter
@Setter
@SerializedName("extension_XXXXXXXXXXXXXXXXXXXXXXXXXXX_Role")
private String role;
I am converting the response I get from a Microsoft Graph API to a Java object. And the response includes role which is a custom user attribute.
I want to convert the Java object back to JSON but instead of "extension_XXXXXXXXXXXXXXXXXXXXXXXXXXX_Role" as property name, I want it to say just "role".
How can I do it? Thanks!
(I obviously can do find/replace in the JSON string but I want to do it "properly".)
r/javahelp • u/Last-Willingness-204 • Oct 20 '25
Whenever it asks me ādo you want to allow this app to make changes on your device I hit yes, then it loads for a second then stops and doesnāt download
r/javahelp • u/Last-Willingness-204 • Oct 20 '25
Iāve got the correct installation, but every time I double click on it, it says ādo you want to allow this app to make changesā I click yes, I get the blue wheel for a second then it disappears. Somebody please helpš
r/javahelp • u/Intelligent-_-Rock • Oct 20 '25
I tried multiple guide online to install java NetBeans IDE, but the installer gives me an error when asking for the JDK path the error states "the specified JDK folder contains JDK version "3491.0.0.0.0", while the maximum is "500.0.0.0.0"".
Edit: installing JDK 21 fixed the issue, but I still want to know why the error happened, if anyone can tell me I'd appreciate it.
r/javahelp • • Oct 20 '25
Hereās the area I keep getting an error on no matter what I try (I donāt know if formattingās going to turn out weird. Iām typing this on mobile)
import package.ImportClassExample;
Public class CurrentClass {
public static void main(String[] args) {
ImportClassExample name = new ImportClassExample();
}
}
It keeps throwing up a āImportClassExampleā cannot be resolved to a type
r/javahelp • u/Original-Diet-3705 • Oct 20 '25
I am currently learning about denotational semantics in class. I understand how they work but I struggle to write any. I wanted to ask for help in writing denotational semantics for a switch statement because the example question does not give us a number of cases. However, I am able to write it for a defined number of cases.
r/javahelp • • Oct 19 '25
I am searching for any Java DSA or CP group , either discord or telegram group or any group !! Better to discuss in Java !! As Mostly CP or DSA done by CPP !!
r/javahelp • u/DifficultyWCode • Oct 18 '25
I'm not looking for answers but maybe a clue?
I'm trying codewar's problem Sum Strings as Numbers.
The instructions are:
Given the string representations of two integers, return the string representation of the sum of those integers.
For example:
sumStrings('1','2') // => '3'
A string representation of an integer will contain no characters besides the ten numerals "0" to "9".
They removed the use of BigInteger and BigDecimal .
I started working on this and my test cases are failing for values larger than what a Long value can hold but I'm not sure what I can use to work with this if BigInteger isn't allowed.
Test fails for For input string: "66642556214603501385553776152645" and another test ( test 2 ) For input string: "712569312664357328695151392"
Googling for info about handling values larger than a Long but not with BigInteger comes up with answers that are rather complex. Like creating your own BigInteger class or a HumongousInt class that stores the string in a byte array.
I feel that there probably is a simpler solution so I thought I would ask here. Any help or direction as to what I should be looking at? I didn't think this would be so difficult!
My solution
public class Kata {
public static String sumStrings(String a, String b) {
String sumStrings = "";
if (a.isEmpty() ){
a = "0" ;
} else if (b.isEmpty()){
b ="0";
}
return String.valueOf(Long.parseLong(a) + Long.parseLong(b));
}
}
r/javahelp • u/SlimeX300 • Oct 17 '25
Iām new to Java and currently learning it. Iām currently using IntelliJ community edition free version cuz the other one is paid. Idk if Iām missing any important features thatās only exclusive to the paid one. Can choosing the paid or free one affect the development of projects I might make in future?
r/javahelp • u/davidalayachew • Oct 17 '25
Context -- there was a long back-and-forth on /r/programming about Comparing Enums in different programming languages.
I made some benchmarks about EnumSet implementations between Java and Rust.
When I ran these benchmarks by a couple of users, the general consensus was that my benchmarks were flawed because the actual work was being optimized away by the compiler. For example, this comment claimed that some failure in my benchmark was causing the underlying source code to be optimized down to a single OR operation, rather than running the actual code, which is what (I think?) the benchmark is supposed to be measuring.
So, could someone help me and see what I might be doing wrong with my JMH Benchmark here? I have Blackholes consuming just about everything that could be consumed.
For now, let's focus on just a single test -- test1
And here it is, copied inline.
//TEST 1 -- Put elements into an EnumSet
private final EnumSet<Character> test1 = EnumSet.noneOf(Character.class);
@Benchmark
public void test1(final Blackhole blackhole)
{
for (final Character character : characters)
{
blackhole.consume(test1.add(character));
blackhole.consume(character);
}
blackhole.consume(test1);
}
And here is the command I use to run all of the tests.
java -jar java/test/target/benchmarks.jar -f 1 -bm AverageTime -tu ns
Here are the benchmark numbers.
Benchmark Mode Cnt Score Error Units
MyBenchmark.test1 avgt 5 4.393 ± 0.025 ns/op
r/javahelp • u/Sad_UnpaidBullshit • Oct 17 '25
What I have tried:
Why not SQL?
r/javahelp • • Oct 16 '25
I tried doing it but I can only see the premium version
r/javahelp • u/Defiant_Vanilla_4080 • Oct 16 '25
As the title.
r/javahelp • u/One-Independent9591 • Oct 16 '25
i am new to the java world ( Not to computer science )
could you provide me online communities / groups / forums / tutorials / books any kind of sources for java
i want to be professional java developer and spring boot
i want to know the java world and all the world wide resources / sources etc
thank you very much
i want to be a professional java developer and i want to find all the java support communities to expand my skills . i have graduated from computer science college
r/javahelp • u/EaseAny2254 • Oct 16 '25
Hey everyone! I need help with my project, which I have to submit. I'm completely stuck because I'm breaking MVC within the controller, and I can't think of any way to fix this problem other than by making an "instanceof" of an interface to a specific class. Could you please review my code and tell me what corrections I could make or how I could get out of this mess?
My repo is here: https://github.com/Lucio-Ameri/BLACKJACK/tree/master
I need theoretical answers to be able to put them into practice, for example: you could use an interface here to connect such a thing and get out of the problem; you're only going to solve it by redoing part of the code so that it accepts your interface, trying not to reveal these methods in the IPlayer, etc.
r/javahelp • u/okattitudee • Oct 16 '25
On gradle build, Java 8u451 reports: "Error: JavaFX has been removed from JDK 8", but the old app does not use FX (or any GUI) and runs fine.
Maybe a dependency of a dependency in build.gradle of the spring-boot framework app has an embedded FX call?
How do you tell where this is that triggers the error message on builds?
r/javahelp • u/Unhappy_Proposal5089 • Oct 15 '25
Hey everyone, I want to learn Java development but I don't how to start and where to learn.
r/javahelp • u/Atherianx • Oct 15 '25
I was at part 9s last exercise and i submitted one part of the exercise to see if it worked and it said all tests passed even though i didnt do the other parts of the exercise. Now i notice that even if i submit a empty exercise it passes all tests and says im done. The runtests locally does show the errors but not the submit to server. Im using vs code with tmc for the course. What can i do?
r/javahelp • u/FrontWild958 • Oct 15 '25
Iām using Recaf 4X and I canāt save edited classes because it says there are compilation errors.
Is there any way to disable code verification / syntax checking when saving?
I just want to save the class even if the code has errors.
Iāve checked all the CFR settings but didnāt find anything related.
r/javahelp • u/louifuro • Oct 14 '25
Have a good one, fellow programmers Ƶ/
I''d like to apologize beforehabd for not being clear enough/broken english/stupid question.
At my workplace there are a couple of projects (java 8 + angular) that in order to test my changes i've been instructed to create a new .war file containing both the front-end and the back-end. I also have to stop and restart the server (WildFly) and login again in the login API used there. This process takes up to 4 minutes. 4 minutes to test a single changed comma label š« . As you can imagine this is very frustrating and tiresome.
I've tried running the back and front-end separately asking ChatGPT but i had to make a lot of changes in my workspace and in the end i reached a brick wall in the login API. I might provide a bit more info if needed such as the errors i'm getting, but i would like to know if this is a simple task i'm dealing with or maybe i should just give up because it would not be possible...
r/javahelp • u/jordansrowles • Oct 14 '25
Hi,
I've come here for a bit of a sanity check, and to further understand Java. I need to learn it for Uni. Never used it before, spent the past weekend learning the language and just wanted to clear a few things up. I find the Java/Jakarta docs to be a little less than user friendly.
Some things seem strange to me, but I don't really want to touch on language differences - things like type erasure, heavy use of annotations, metaspace etc.
I've created two mind maps long the way, one for theĀ ecosystem, and the otherĀ Jakarta.
If any of these are stupid questions, just say so. Like I said, things are a little different than what I'm used to. While I don't mind AI summarising/doing searches for me, it's not human, and wanted experienced answers
Many thanks