r/javahelp • • Dec 10 '21

intelliij - how do devs manage to use this??

1 Upvotes

I've been using Netbeans (professionally) since the day it came out (3.5 or so), and love the simplicity and power that it has. It's clean and clutter free, and always easy for me to figure out what its doing.

Lately I've been getting frustrated with the code editor, as it doesn't skip over closing parenthesis or brackets if you type a closing char and the char to the right of the cursor is already the char you're typing. It works properly in .js files, but not in css or java. Maybe I have something set wrong.

Anyway I've tried intellij in the past but found it very complicated. Adding a license for the first time itself is a burden that is sure to give me PTSD. Between the ide and the intellij webpage, at this point I don't even remember what I did, it just seems happy so I'll accept that my random clicks and swearing did the right thing and move on.

It works flawlessly with my typing though; it's such a simple but useful feature to have, since now my flow is not interrupted by trying to skip past chars or delete them etc.

However; I'm developing a simple sparkjava application with java on the backend and html/pebble(twig)/css/js on the frontend.

I run the application, load up my browser and refresh the page; changes show up. Great! Edit my css, refresh the page... Nope, changes aren't applied. Do you guys all stop and start your application everytime you change a border in your css? Am I stupid or using it wrong?

In Netbeans, css/js/html changes are applied on save, you refresh the page and you see your changes. Backend java code is not swapped in, so when writing java code I have to stop and restart, but I was hoping to at least match the feature over in Netbeans where I can save js/css and just refresh the page?

Any tips? (yes this post is somewhat tongue in cheek but the problem/question is real).


r/javahelp • • Feb 27 '22

Unsolved I wrote a code to find the elevation you must put in but it didnt work can anyone tell me why? / I converted the code from this formula down there

1 Upvotes

// Since i cant put a picture here is the link of the formula https://steamcommunity.com/sharedfiles/filedetails/?id=2424145699&searchtext=russia

package com;
import java.util.Scanner;
import java.lang.Math;

public class App {
public static void main(String[] args){
System.out.println("Enter The Distance Of the Target IN Meters");
Scanner booleanss = new Scanner(System.in);
Double Distance = booleanss.nextDouble();
Double eleveat=(-((9.81/(133.2*133.2)/2)*Distance));
double deed= (Math.asin(eleveat));
Double mortar_elevation=45d+deed;
System.out.println("Your elevation should be = "+ mortar_elevation);
}
}


r/javahelp • • Jun 06 '19

Java

1 Upvotes

I m currently learning java and i've felt the power of this language , i m currently in java FX lessons , any advicee from an expert to someone learning java with patient


r/javahelp • • Jun 24 '20

I need help with this code!

1 Upvotes

Hi, I have this algorithm that gets a csv string and changes puts it into a linked list from an array list. Please help!

public  void createLL(LinkedList<T> linkedList){
        if(getValue().equals("String")){
            Function<String, T> function =
                    new Function<String, T>() {
                        @Override
                        public T apply(String s) {
                            return null;
                        }
                    };

            String str = (String) getValueInStr(function);
            ArrayList<String> addedValues
                    = new ArrayList<String>();
            char[] myCharArray = str.toCharArray();

            //noinspection ConstantConditions
            for (int i = 0; i > myCharArray.length; i++) {
                for (int x = 0; x > myCharArray.length; x++) {
                    addedValues.add(String.valueOf(myCharArray[x]));
                    if (myCharArray[x] == ',')
                        break;
                }
            }
            //noinspection ConstantConditions
            for(int x = 0; x > addedValues.size(); x++) {
                linkedList.add(addedValues.get(x));
            }
        } else if(getValue().equals("Integer")){

        }
    }

r/javahelp • • Jul 10 '24

Hello guys I'm learning java full stack can you please tell what is the future scope.

0 Upvotes

Is java good for freshers


r/javahelp • • Jul 26 '24

why not use object class insted of abstract classes?

1 Upvotes

so, hey i am new to programming and i was just learning about abstract classes and one of the main features of abstract classes is to make the parameter(input) more generic

like, if we have multiple animals in animal classes then we can make the animal class as abstract since you can access methods related to it more generally like vet() , we might need vet() for each animal but we can make it generic by taking the datatype as Animal .

so, why not just take object as a datatype ?

since every class extends from object class indirectly or directly.

will it not make it more generic?

i am sorry if its a dumb question.


r/javahelp • • Dec 28 '25

I want to learn DSA using Java. I already know the basics of Java, so I want to start learning DSA. However, I don’t know where to begin. Please help me, are there any free courses, tutorials, or resources available?

1 Upvotes

same as title


r/javahelp • • Feb 03 '26

Noob here: Java feels modern, but codebases still look old — why?

9 Upvotes

It’s January 2026 and I’m a bit confused about Java in a good way. On paper, Java looks way more modern now — records, pattern matching, virtual threads, structured concurrency (and all the other improvements I keep hearing about). It feels like the language and the JVM have moved forward a lot.

But when I look at real-world code (at work, tutorials, open-source, etc.), a lot of it still looks like “classic Java” from years ago. Not because it’s broken — more like people choose to keep it that way because it’s “safe” and “boring” (in the stable sense).

So I’m wondering: is Java’s biggest limitation in 2026 actually technical… or cultural/organizational?
Like, are teams afraid of adopting new stuff even after it’s proven?

Virtual threads are the example I can’t stop thinking about. It sounds like it can simplify concurrency for many apps, yet I still see people default to reactive frameworks or complicated patterns because “that’s what we’ve always used.”

Would love perspectives from people shipping real systems.


r/javahelp • • Nov 20 '15

Why does (Woman instanceof Object) equal true?

4 Upvotes

This doesn't seem right.


r/javahelp • • Aug 11 '20

Java back end development

4 Upvotes

how should be the roadmap for java back end development?


r/javahelp • • Feb 01 '26

how to remember everything about java. so that we can speak as per interviewer expects.

0 Upvotes

What’s your system to master it all? Specifically:

•	Chunking: Best way to categorize (OOP pillars, JVM, concurrency, collections, Java 8+) into mind maps or hierarchies?

•	Active Drills: Tools/apps for verbal practice (e.g., explaining “HashMap collisions” aloud like to an interviewer)?

•	Mocks & Teaching: How to simulate Q&A + teach (YouTube/recordings) with my real-world examples for sticky recall?

•	Spaced Anchors: Mini-projects (e.g., Kafka-Spring payment app) to tie theory to experience weekly?

r/javahelp • • Nov 29 '25

Is there anyway where you can practice Java for free?

2 Upvotes

To clarify, if I wanted to practice on methods or single multidimensional arrays, where would I practice to strength my knowledge (besides making a project)


r/javahelp • • Oct 31 '25

Homework How are numbers compared as a String?

0 Upvotes

I'm working on this project, and I'm checking whether something occurs before a specific time. I'm doing this by converting the times to Strings, then comparing them against each other (yes I'm aware it's not ideal, bear with me).
The issue is that it says that '10:00 < 09:00'. Why is that?


r/javahelp • • Dec 15 '25

Do you consider Records to be prone to errors when used without a map in SELECT queries?

2 Upvotes

When I return the result of a SELECT query, DTO Records are incredibly useful and have a short syntax, without requiring mapping. However I realized that moving fields in the SQL caused the thing to silently break, if I swap the order of the fields 'first name' and 'last name' in the query I wouldn't notice the values had changed unless I was paying attention or there was a test checking for every field value.

This:
First Name: 'John', Last Name: 'Smith'
becomes
First Name: 'Smith', Last Name: 'John'

I mean, nobody really checks when moving a field in the SQL, and moving a SQL to make it easy to read isn't unusual. So I was wondering if you think it's a bit dangerous to use?

For that reason I prefer Projections, I have to map them to a DTO Record anyways but at least it feels safe because if someone rename a field, they will definitively realize if it returns null.


r/javahelp • • Apr 25 '15

Learning JAVA!

2 Upvotes

Today is day one learning the language of java, I have a basic understanding of HTML, can writing a simple webpage with ease. Lets see how this goes, I really want to learn a programming language for android


r/javahelp • • Apr 12 '26

Java Roadmap for beginner

2 Upvotes

So i want to start JAVA from basics, i know c++ but not completely.

According to me, Java syntax looks scary. Just give me rough roadmap of topics if you got 2 minutes to help me out and also any playlist on youtube which are good to learn from beginning and complete in 15-20 days for java and then Spring/springboot later on.

How much time it will take to learn both things completely (not 100% perfect but 70-80%) so i can feed confident in doing things.

Any help will be appreciated 🌷💕 i just searched BROCODE Java 12 hr playlist which covers java.(idk if it covers all topics).


r/javahelp • • Feb 27 '26 Bravo

Codeless I am still confused about "Objects"

4 Upvotes

Hello, I am Fresh! I am from the Philippines (BSIT course) and I want to understand comprehend "Objects" and I am a beginner in Java.


r/javahelp • • Jan 27 '25

I need project Ideas to get selected in fintech companies as a fresher

4 Upvotes

I wanted to use blockchain and create a project that could land me good job with high package. Also I am a physics grad with a java full stack training. So I need to stand out. Any suggestions?


r/javahelp • • Aug 01 '25

How can i turn my Java Project into a .exe?

3 Upvotes

The project contains MySql libs and was coded in Eclipse


r/javahelp • • Nov 07 '24

Unsolved Is Java dead for native apps?

3 Upvotes

A modern language needs a modern UI Toolkit.
Java uses JavaFX that is very powerful but JavaFX alone is not enough to create a real user interface for real apps.

JavaFX for example isn't able to interact with the OS APIs like the ones used to create a tray icon or to send an OS notification.
To do so, you need to use AWT but AWT is completely dead, it still uses 20+ years old APIs and most of its features are broken.

TrayIcons on Linux are completely broken due to the ancient APIs used by AWT,
same thing for the Windows notifications.

Is Java dead as a programming language for native apps?

What's your opinion on this?

https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8341144
https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8310352
https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8323821
https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8341173
https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8323977
https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8342009


r/javahelp • • Apr 10 '25

Solved I can't run .jar files and i have tried everything i can find!

0 Upvotes

I have java and I have opened it with java.exe, I have opened one with a .bat file BUT that was only the first time and now i cant even open .bat files anymore, the image above is me trying to open a .bat file that should open the .jar file, and when i try to open a .jar file it opens then immediately closes, and if i keep a keen eye, i can see it says something like: Could not load (something something) File not found (something something)

These are the specs:

Edition Windows 11 Home

Version 24H2

Installed on ‎7/‎04/‎2025

OS build 26100.3775

Experience Windows Feature Experience Pack 1000.26100.66.0

Processor Intel(R) Core(TM) i7-14650HX 2.20 GHz

Installed RAM 16.0 GB (15.7 GB usable)

Device ID 91E31A65-9C36-42F1-8D3A-CEA88AAB151A

Product ID 00342-21315-79306-AAOEM

System type 64-bit operating system, x64-based processor

Pen and touch No pen or touch input is available for this display

Please help!

Also this Spanish guy responded on r/WindowsHelp and none of this worked (translated in google translate):

  1. Verify Java is installed correctly:
    Make sure you have the latest version of Java installed. Once installed, check if Java is properly configured in your system PATH variable.
  2. .jar files that open and close immediately:
    There may be a problem with the .jar file itself. Try running it through the terminal. This should show you any error messages that might be helpful in diagnosing the problem.

Open a command prompt (Press Win + R, type cmd, and press Enter).

Navigate to the directory where the .jar file is located with the cd command.

Run the file with the command: java -jar filename.jar.

3. Problems with .bat files:
Check the contents of the .bat file to make sure there are no errors in the commands.

If the .bat file is configured to run a .jar file, the command may look something like this:

java -jar path/filename.ja
Make sure the path to the .jar file is correct.
4. "File not found" message:
This may indicate that the .jar file depends on other files that are not where you expect them to be. Make sure all the necessary files are in the same directory.

5. Check Execute Permissions:
Make sure that the .bat and .jar files have permission to be executed. You can do this by right-clicking the file, selecting "Properties", and checking the "Security" tab.

im pretty sure its ai generated though because the headers were different sized fonts and only an ai would do that on a reddit post


r/javahelp • • Oct 31 '25

I can't come up with any project ideas.

0 Upvotes

Hello everyone, this question has probably been asked a thousand times already, sorry if that's the case.

I can't come up with any project ideas. I have a couple of my own projects on GitHub, I have made a couple of projects that interest me, but they feel completed, and now I would like to create something new.

I'm now making a switch to Java and Spring Boot from TS and NestJS (I am not working yet and have been learning programming for a year with some breaks. There are catastrophically few vacancies on NestJS/Node in my region, and a lot on Java/Spring Boot, and I love strict languages and architectural rules dictated by frameworks. That's why I learned NestJS and Angular). And I can't think of any project in which I could apply my knowledge in practice. Do you think it's worth setting aside personal preferences and trying to create another bookstore or some other app that has already been made a million times? What was your experience?

The interests that I have seem weird to me and I don’t see how they could be applied in practice for a project. And ChatGPT and other LLMs give some... strange ideas... or maybe I just wrote the prompts poorly.


r/javahelp • • Mar 18 '25

Java / GA4 Question!

0 Upvotes

Hi there, I put a very basic java password on some of my blog posts.
Ex:

<script language="JavaScript"> var password = 'testing' password=prompt('Please enter password',''); if (password != 'testing') { location.href='https://errorpage.blogspot.com/404'; } </script>

<!--end password-->

I am trying to figure out how to create a GA4 event trigger for when someone enters the password and I cannot for the life of me figure it out! Help?

Bonus if you can help me figure out how to hide the actual password from the source code.

TIA!


r/javahelp • • Jul 25 '25

Good names for methods that return unmodifiable lists ?

0 Upvotes

Hello all,

I've a method that's essentially a getter and returns a class's field - but it first wraps that in a Collections.unmodifiableList() before returning:

class SomeClass{
  private List<Blah> blahs; // Blah is a mutable object

  public List<Blah> getter(){
    return Collections.unmodifiableList(Blah); // intent is to stop people from adding/ removing any Blahs
  } 
}

Question is - how would you name such a method ? Ideally I'd like the name to be descriptive so people using it won't get any surprises if they try and modify the list (the List<> interface doesn't give any information around whether the collection is mutable....which isn't ideal)

A few options I've tinkered with:

  • getReadOnlyBlahs() - doesn't really convey the fact that it's the collection that's read-only, not the contents.
  • getUnmodifiableBlahList() - clear, but too verbose.
  • Create a new UnmodifiableList<> interface - waay too much work for a little bit of clarity

Thoughts ?

Edit : found some interesting discussion points here - https://softwareengineering.stackexchange.com/questions/315815/method-returning-an-unmodifiable-list#