r/javahelp • • Jul 31 '26

i want to be a full stack java developer im MERN and Next.js developer i want to move to software engineering

2 Upvotes

guid me through im in 6 th semester for now at the end of 8 i want to be something in java my aim and goal is to crack job in amazon thank you


r/javahelp • • Mar 17 '25

Codeless How list<list<datatype>> works

2 Upvotes

How list of lists work


r/javahelp • • Aug 28 '22

Consuming a REST API using just vanilla Java!

7 Upvotes

I am a newbie java developer, can build basic CRUD capable spring boot applications. And I am looking for a new job. So one company gave me this HackerRank assignment which involved consuming a REST API but the assignment was restricted to Java only.

Within minutes I realized this seemingly simple task is beyond by scope without Spring. I left the assignment and checked for some solutions, and jeez I kid you not I was horrified beyond my wits. The same thing which can be done in javascript in about 5-6 lines of code was at least 50 lines of code here in java. Check out this link to get an idea of what I am talking about.

As a Java Developer, do people (interviewers) expect you to know this BS by heart? Do you need to know this for your daily tasks (even occasionally)? Do you agree this is a load of crap?


r/javahelp • • Feb 17 '25

To be a Java developer what concepts and tech stack should one know?

4 Upvotes

I am a beginner in java dev and have been learning basics of spring boot. If you ask me to build something using just java and work with objects , i wouldn't be able to as I don't have enough practice for it. Thus I wanted to know what frameworks in java currently one should know to secure an internship in college.

And what kind of projects should be on your resume so that I can plan it out.


r/javahelp • • Jan 19 '26

Unsolved How to learn Java??

1 Upvotes

Hi everyone,

I’m a 4th semester student from a tier-3 college, and I want to start learning Java from scratch. I’m a complete beginner.

I’ve been searching for resources on Reddit and YouTube, but honestly, I’m feeling very confused because there are so many recommendations. Some people suggest the MOOC Java course, while others recommend creators like Concept & Coding (Shreyansh), Durga Software Solutions, Telusko, Kunal Kushwaha, and many more.

As a beginner, I’m not sure:

•	Which resource to start with

•	Whether I should focus more on concepts or coding practice initially

•	How to structure my Java learning properly

I would really appreciate it if you could guide me like a younger brother and suggest a clear roadmap or a small set of resources that worked for you.

Thanks in advance for your help 🙏


r/javahelp • • Oct 23 '25

Need advice: Should I focus on DSA, switch to Java, or learn System Design to move toward FAANG-level roles?

0 Upvotes

Hi everyone,
I'm currently working as an SDE1 (Full Stack Developer) at a startup with ~1 year of experience. My tech stack mainly includes ASP.NET, React, and some work with LLMs.

I’m looking to switch to a top product company (like FAANG or similar) in the next 3-6 months, but I’m confused about where to focus my efforts right now.

Here are the main options I’m considering:

  • Continue with DSA preparation and competitive programming (for coding rounds).

  • Switch to a Java-based backend stack, since most FAANG interviews seem to prefer Java.

  • Start learning System Design fundamentals — though I’m unsure if it’s necessary at the 1-year experience level.

I’d appreciate suggestions from those who’ve made a similar switch or gone through early-career transitions into big tech.

  1. For someone with 1 year of experience in .NET/React, is it worth switching to Java now or just focusing on problem-solving and interviews?

  2. How important is system design at this stage (junior/mid-level roles)?

  3. Any recommended plan/roadmap for transitioning from startup experience to FAANG-level opportunities?

Thanks in advance! Any insight or roadmap suggestions would be super helpful.


r/javahelp • • Sep 13 '25

Career crossroads, C# or Java

0 Upvotes

Self-taught dev been working in an entry level IT job for about 8 months now. The job is in Object Pascal / Delphi mostly, and i've made some web apps with TypeScript. We're gonna be using SpringBoot aswell soon so i made some basic prototypes in it of a simple REST server.

Really grateful to be working in the industry but my current job is dead-end and the pay is low. I've heard my senior friends who work elsewhere tell me that the best way to get a better job is to pick some niche in a language and deep dive becoming a specialist in it ( like .NET in C#, or SpringBoot in Java ).

I'm now looking to make some better projects for my github and deep dive a language, but i'm at a crossroads: I love OOP languages but idk what to pick, Java or C# and am looking for suggestions.

I'm willing to do hard work in my free time, read books and really grind a language, but i'm not sure which one to pick.


r/javahelp • • Jul 27 '25

Do you use "_" in method (test method) or variable name? Why?

1 Upvotes

I am starting using Unit Testing for testing my project for more assurance, reliability, and clean code. But, I found myself naming methods very long! Especially test methods that real method name is long

E.g. testCreateFileWithExistingFileShouldThrowException() {} E.g. createFile_WithExistingFile_ShouldThrowException() {}

What do you do? Is it valid?


r/javahelp • • May 05 '26

is there any way to storage variable data in a databank for later consult use

1 Upvotes

was thinking about using a call method from another class file to storage variable data but everytime the file entered process it would reinitialize the varible to starting point, desteoying instead of storaging it, like a databank, for example int databalance = 0; and everytime the file was run it would return to be 0 despite my method for adding to it.


r/javahelp • • Aug 27 '25

new here

0 Upvotes

So basically i am learning java these days and i don't know if i am doing it in the right way or not.
i know that if you wanna make progress with any programming language you need to practice, make projects but i don't think so that i have enough knowledge to make things. So what should i do to remember what i have learned??

i wanna make money as soon as possible like everyone.
i am learning web development and i wanna someone who can guide me through it :D
i know basic about things tho
i would really appreciate your help thanks.


r/javahelp • • Mar 22 '26

What is my failure when trying to use project Valhalla?

0 Upvotes

Recently, I discovered the project Valhalla, so I decided to do a basic test.

My example was inspired by this video (https://www.youtube.com/watch?v=ViZkEgshiXI)

First, I created tree records:

public record City(Population population, LandArea landArea) {}

public record Population(int population) {} 


public record LandArea(double landArea) {}

Then, I create this class to calculate the values and show the execution time

public class RunPlayground {

    static void main(String[] args) {
        long inicio = System.nanoTime();

        Result resultado = withOneLoop();
        System.out.printf("Total Land Area: %.2f%n", resultado.totalLandArea());
        System.out.printf("Total Population: %d%n", resultado.totalPopulation());

        long fim = System.nanoTime();
        long duracao = fim - inicio;

        System.out.printf("Execution time: %d ns (%.3f ms)%n",
                duracao, duracao / 1_000_000.0);
    }

    public static Result withOneLoop() {
        City[] cities = {
                new City(new Population(0), new LandArea(0)),
                new City(new Population(1), new LandArea(1)),
                new City(new Population(2), new LandArea(2)),
                new City(new Population(3), new LandArea(3)),
                new City(new Population(4), new LandArea(4)),
                new City(new Population(5), new LandArea(5)),
                new City(new Population(6), new LandArea(6)),
                new City(new Population(7), new LandArea(7)),
                new City(new Population(8), new LandArea(8)),
                new City(new Population(9), new LandArea(9)),
                new City(new Population(10), new LandArea(10)),
                new City(new Population(11), new LandArea(11)),
                new City(new Population(12), new LandArea(12)),
                new City(new Population(13), new LandArea(13)),
                new City(new Population(14), new LandArea(14)),
                new City(new Population(15), new LandArea(15)),
                new City(new Population(16), new LandArea(16)),
                new City(new Population(17), new LandArea(17)),
                new City(new Population(18), new LandArea(18)),
                new City(new Population(19), new LandArea(19)),
                new City(new Population(20), new LandArea(20)),
                new City(new Population(21), new LandArea(21)),
                new City(new Population(22), new LandArea(22)),
                new City(new Population(23), new LandArea(23)),
                new City(new Population(24), new LandArea(24)),
                new City(new Population(25), new LandArea(25)),
                new City(new Population(26), new LandArea(26)),
                new City(new Population(27), new LandArea(27)),
                new City(new Population(28), new LandArea(28)),
                new City(new Population(29), new LandArea(29)),
                new City(new Population(30), new LandArea(30)),
                new City(new Population(31), new LandArea(31)),
                new City(new Population(32), new LandArea(32)),
                new City(new Population(33), new LandArea(33)),
                new City(new Population(34), new LandArea(34)),
                new City(new Population(35), new LandArea(35)),
                new City(new Population(36), new LandArea(36)),
                new City(new Population(37), new LandArea(37)),
                new City(new Population(38), new LandArea(38)),
                new City(new Population(39), new LandArea(39)),
                new City(new Population(40), new LandArea(40)),
                new City(new Population(41), new LandArea(41)),
                new City(new Population(42), new LandArea(42)),
                new City(new Population(43), new LandArea(43)),
                new City(new Population(44), new LandArea(44)),
                new City(new Population(45), new LandArea(45)),
                new City(new Population(46), new LandArea(46)),
                new City(new Population(47), new LandArea(47)),
                new City(new Population(48), new LandArea(48)),
                new City(new Population(49), new LandArea(49)),
                new City(new Population(50), new LandArea(50)),
                new City(new Population(51), new LandArea(51)),
                new City(new Population(52), new LandArea(52)),
                new City(new Population(53), new LandArea(53)),
                new City(new Population(54), new LandArea(54)),
                new City(new Population(55), new LandArea(55)),
                new City(new Population(56), new LandArea(56)),
                new City(new Population(57), new LandArea(57)),
                new City(new Population(58), new LandArea(58)),
                new City(new Population(59), new LandArea(59))
        };

        double totalLandArea = 0;
        int totalPopulation = 0;

        for (var city : cities) {
            totalLandArea += city.landArea().landArea();
            totalPopulation += city.population().population();
        }

        return new Result(totalLandArea, totalPopulation);
    }
    
    record Result(double totalLandArea, int totalPopulation) {}
}

The execution time without value record was:

Total Land Area: 1770,00
Total Population: 1770
Execution time: 60404200 ns (60,404 ms)

Then, I changed the records to use value record

public value record LandArea(double landArea) {}

public value record City(Population population, LandArea landArea) {}


value record Result(double totalLandArea, int totalPopulation) {}

public value record Population(int population) {}

So these were the results:

Total Land Area: 1770,00
Total Population: 1770
Execution time: 71441600 ns (71,442 ms)

Important informations:

- I ran in Windows

- I used this version of JDK: https://jdk.java.net/valhalla/

- In both versions (with and without value record) I ran them several times and showed here the executions that were within the average.

- I ran it without any additional JVM configuration (about memory)

I'm new to this project, what is my failure? thanks.


r/javahelp • • Mar 04 '26

New to programming, Java is my first language, need help running code

1 Upvotes

My debugger keeps giving me this error, and I’m guessing it means I set something up wrong, probably with installing my JDK or something, (I was never clear on that)

Error:

Cannot invoke "org.eclipse.jdt.core.search.SearchPattern.findIndexMatches(org.eclipse.jdt.internal.core.index.Index, org.eclipse.jdt.internal.core.search.IndexQueryRequestor, org.eclipse.jdt.core.search.SearchParticipant, org.eclipse.jdt.core.search.IJavaSearchScope, org.eclipse.core.runtime.IProgressMonitor)" because "pattern" is null


r/javahelp • • Jan 22 '26

Unsolved Cannot locate Java on my computer

1 Upvotes

I downloaded and installed Java to help a friend test a program (a version of the Shimeji desktop companion) they were working on.
As expected, the program did not launch before installing Java. After I installed Java, it worked perfectly. This should demonstrate I did install Java and it is currently in the machine.
After completing the test I wish to remove Java as I am not using it. However, I cannot locate it anywhere. The install wizard, which can be run to uninstall Java, says "no Java installation is detected on this system" when propted to remove Java. I cannot locate any Java folder in C:\Program Files or C:\Program Files(x86). I cannot locate the Java Control Panel anywhere. For all intents and purposes, it seems like Java is not installed, except that it is because I can still run the program my friend is making. I am running Windows 11 Home.

Thanks in advance to anyone who might read this and help out


r/javahelp • • Oct 14 '25

Solved Binary search stuck in infinite loop.

0 Upvotes

For my java class I was tasked with using a binary search to find a word in the poem "Jabberwocky"

This has proven to be a challenge because setting all words to lowercase worked, I modified it to check, the actual search function goes on INFINITELY. I have no idea what I'm doing wrong.

For reference to my code, input is the word the user put to search for, and array is the arraylist of words that it is searching for.

Anyways I just need help figuring out why this loop is going infinitely because I'm very stuck.

I have the problematic method here.

But if you want the whole code block, as well as the jabberwocky text file, you can find it here.


r/javahelp • • Aug 19 '25

What do you recommend to watch/read to learn Java for beginner?

1 Upvotes

Please heeeeelp:(


r/javahelp • • Dec 08 '20

String array help

0 Upvotes

So for assignment for my java class, I have to make a program that manipulates strings. One part of the program i have a file where I read in a list of string. Then I have a method which splits the string which is separated by "/". Then that method puts it into a array[]. So when I tried to return the array it kept giving me type mismatch error.

Code:

Public static String[ ] breaksupstr(String n){ String[] arrstr=n.split("/", 3); } Return arrstr; }

Error return invalid type.


r/javahelp • • Nov 15 '20

Need help to refine this code to get proper output

1 Upvotes

I have been working diligently on this code at need some help from the community on find the bugs in my code, After much research and assistance from the community I was able to get working code but the output is not correct I was hoping someone could give me some help to get the proper output

Sample Run: RegularBox regBox1 = new RegularBox(4, 8, 2, "carton"); SquareBox sqBox1 = new SquareBox(4, "carton"); RegularBox regBox2 = new RegularBox(4, 8, 2, "plastic"); RegularBox regBox3 = new RegularBox(4, 8, 2, "wood"); SquareBox sqBox2 = new SquareBox(3, "concrete");

// Your print statements here (see the desired output below: Output: The volume of regBox1 is 64.00 cubic inches The cost of regBox1 is $2.88 The cost of regBox2 is $4.96 The cost of regBox3 is $8.64 The cost of sqBox1 is $2.59 The cost of sqBox2 is $-1.00

I'm not getting the regBox or SqBox in output, and getting print out of volume each time and on SqBox2 I'm getting -$.90 when it should be -$1.00

public class RegularBox {

private String material;
private double length;
private double width;
private double height;

public RegularBox(double length, double width, double height, String material) {
    this.material = material;
    this.length = length;
    this.width = width;
    this.height = height;
}

public String getMaterial() {
    return material;
}

public double getLength() {
    return length;
}

public double getWidth() {
    return width;
}

public double getHeight() {
    return height;
}

public String toString() {
    return "The cost of is $" +String.format("%.2f",getPackageCost());
}

public double getPackageVolume() {
    double volume = height * width * length;
    System.out.println("The volume of is " +String.format("%.2f",volume) + " cubic inches");
    return volume;

}

public double getPackageCost() {
    if (material.equalsIgnoreCase("wood")) {
        double cost = .135 *getPackageVolume();
        // System.out.println("The cost of  is " + cost);
        return cost;
    } else if (material.equalsIgnoreCase("carton")) {
        double cost = .045 * getPackageVolume();
       // System.out.println("The cost of  is " + cost);
        return cost;
    } else if (material.equalsIgnoreCase("plastic")) {
        double cost = .0775 * getPackageVolume();
       // System.out.println("The cost of  is " + cost);
        return cost;
    } else {
        return -1;
    }
}

}

public class SquareBox extends RegularBox {

public SquareBox(double side, String material){
    super(side,side,side,material);

}

@Override
public double getPackageCost() {
    return super.getPackageCost() - (super.getPackageCost() * .10);
}

}


r/javahelp • • Nov 28 '20

Hi - I need help. Somehow I have a Set that is allowing duplicates.

0 Upvotes

EDIT: WE HAVE AN ANSWER (I need to write a method to override the Oject equals() and hashCode()).

Big thank you to both u/leroybently and u/NautiHooker who figured out my problem immediately.

So I'm working on a secret hobby project so I have to be a little sparse on the details. Where I make an object that has 3 values - two Strings (a brand name, a classifications) and an int. The idea is that these can be entered manually with one constructor, but to save a lot of time testing, I wrote a default constructor that randomizes the values. This means there are 8 brands, 14 numbers, and 4 classifications (trying not to give away too much) . This leads to (in theory) 448 distinct objects.

I also wrote a deck for holding these objects. This involves a Set because there can be no more than 1 of each distinct object in each deck. I also wrote it so this can be automatically generated and all the user has to specify is how big a deck they want to make. This reveals the problem. Just on a whim I decided to test feeding it 500 as a target size, figuring that this would just cause it to endlessly try to populate the deck. Only it doesn't. Not even 5,000 broke it. Its allowing duplicate values it has to be added. Using the size() confirms it.

If you have any ideas as to what I did that could have broken Sets, I'd like to hear them. The only thing I can think of is that maybe it is considering objects with the same values to be unique. When they should be the same. And if that's the case, what can I do to make each object have a distinct signature?


r/javahelp • • Nov 10 '20

Jarfix not working properly ("There is no latest Java Runtime environment on your PC")

1 Upvotes

I wanted to run optifine 1.16.4 and when I opened it with Java Platform SE Binary, the cmd prompt opened and closed in a second and that's it. So I decided to try out Jarfix and it said "There is no latest Java Runtime environment on your PC". The java.exe file is downloaded in Program Files so i'm not sure what's going on here.

Any help would be appreciated


r/javahelp • • Oct 06 '16

I am completely new to java

0 Upvotes

Does anyone have any really good tips or pointers for starting to learn java and what I should do and what I shouldn't do?

Thanks


r/javahelp • • Aug 26 '15

How would I make a Rock, Paper, Scissors game with arrays?

1 Upvotes

What would be the way to do this. Please just start me on the right path don't show me any code. I want to figure this out. Thanks! :)


r/javahelp • • Nov 03 '24

i need help as a beginner

1 Upvotes

I want to create an application using Java Spring Boot and Angular. Could anyone suggest some free resources to learn them?


r/javahelp • • Mar 16 '20

Unsolved Is java getting old!!

1 Upvotes

Hello everyone, I am a second year university student and It's been quite sometime now that I have been working with java, i have learned most of the core java stuff like jdbc, gui programming and have made a few applications.

Now i am not able to figure what more should i learn now!! Like what are the frameworks, libraries and other advanced things/concepts i should know that are currently used by developers.

The question itself might seem stupid but I have this doubt because everywhere people only discuss about languages like python for ML/AI and similar stuff, from web to app development there are newer technologies available.

I don't find people talking much about java anymore i absolutely love this language but i feel like java is getting outdated!!

In web, java frameworks like spring /hibernate are getting replaced by modern frameworks like react, node, django In android app development java is getting replaced by langs like flutter, kotlin.

Is that because java is getting old and no one learns it anymore because of it's bit complex nature

Is the future of java not so bright anymore???

P.S: sorry if this post does not match this sub


r/javahelp • • Mar 15 '20

Hashmap

0 Upvotes

What is the simplest hashmap you can code? I'm thinking of an int[] array with linkedlist at each index? Is there any other way? also please provide code, I'm stuggling to code one perfectly?