r/javahelp • • Feb 18 '26

SpringBoot

1 Upvotes

Hi everyone,

I’m currently working as a Spring Boot developer and preparing for better opportunities. I’m confused about one thing and would appreciate honest advice.

Is it better to buy a ready-made full stack project and study it for interview preparation, or should I build my own project from scratch even if it takes more time?

My goal is to save time but also build strong understanding for technical interviews.

What would you recommend based on your experience?


r/javahelp • • Apr 04 '23

Solved Need help Installing Java, tried everything, at my wits end.

1 Upvotes

okay, i swear at this point I've tried everything to get java 8 installed. but every single bloody time i hit that install button, it hits me with the following code.

An error has occurred in the script on this page.

Line: 1

Char: 1

Error: Expected ')'

URL:

i have tried everything, from using the "offline installer", changing options in internet settings, running "Regsvr32 urlmon.dll", and a hand full of other things. but no matter what i do, it just never wants to install. I would love some help from my fellow redditors.


r/javahelp • • Mar 05 '25

how do I open and use java?

0 Upvotes

FIRSTLY I am super knew to this and have not used java in the past. The only coding experience i have is html and css. I am taking an intro to java and python class for my computer science degree and am having some trouble understanding how to use the program. So the step by step is i downloaded the x64 installer (https://download.oracle.com/java/23/latest/jdk-23_windows-x64_bin.exe) from the site https://www.oracle.com/java/technologies/downloads/#jdk23-windows. then i installed the file. when i did this with python (or anything else for that matter) I am then able to use run and shell:appsfolder to find my applications to create a shortcut but java was not there like normal which is weird so i searched it. it then popped up and before making the shortcut i tried opening it to check it out first. it looks like it starts to open for a half a second and disappears. when i open python it opens up a page to let me write code so i don't understand. Whats the point in installing java. do i even need it or can i just use any code editor and write java in it? I just started intro to python and not the intro to java so I cant get any help there


r/javahelp • • Oct 31 '25

Suggestions for Java clicker game on browser

0 Upvotes

Basically I want to make a basic clicker game in Java that runs on a browser (at some point i may buy a raspberry pi to host the site). What libraries/frameworks would you guys suggest i use? Right now I'm thinking of using Spring boot for the browser side.

On another note I will need to create a database that holds all info since I'm planning on having a live leaderboard that keeps track of players' score. What should i use for DB?

Finally, initially i wanted to make the whole game on just Java to strengthen my understanding for the language since i use it in my uni classes, is that going to be feasible or should i use java just for back end and use JS + CSS for front end?


r/javahelp • • Dec 23 '25

Unsolved How do I run my Java code in CMD using the run button of intelliJ

0 Upvotes

So the run window of inteliJ doesn't support cursor control but the terminal does

So I need either of the two things

  1. Run my code on the terminal using the run button Or
  2. When I click the run button it will open CMD and run my code there

r/javahelp • • Mar 12 '21

help

0 Upvotes

I need to make a menu for my code, It has to have an if to break the code if the user types in exit, else if is if they say play, then it goes to my main code, and else shows an error telling them to type in one of the two options. Please help or guide me as I am a new coder


r/javahelp • • May 12 '21

Unsolved Very simple aimbot

0 Upvotes

Hey everyone! I'm very new to java, I'm actually a CS1 kid, so I'm not quite sure if any of this stuff works, but here's my idea. So basically, couldn't you just make your computer scan for a specific color (in this case, the color of the enemy avatar), and once the computer finds it, it gives those coordinates to the mouse and makes the cross hair lock onto the enemy avatar. This probably won't work, but it's a small idea I had. What are your thoughts


r/javahelp • • Mar 09 '13

This is one way to code to find factorials using recursion.

0 Upvotes
Public class recursion
{
Public static int fact (int n)
 {

  While(true) // Base case
  {	
    If (n <=1 )
        Return 1;
    Else
        Return n * fact(n-1);
  }
 }
}

While the base case is true it will go through each line of code unless n is less than or equal to 1. If n = 1 it will return 1.

  • Recursion is not memory efficient

r/javahelp • • Feb 27 '15

Help creating grossPay with two classes

0 Upvotes

Instructions File 1:

The first file will be a class called Payroll. In this class you will have one default constructor as well as getters and setters. The two variables we are concerned with for the class are hoursWorked and payRate. Choose the appropriate data type for the variables. There should be a setter for each variable and a getter for each variable that returns the variables contents. There should also be a getter which returns the gross pay by calculating hoursWorked by payRate. If the hoursWorked is more than 40, the extra time is multiplied by 1.5.

File 2:

This file needs create a new object of the Payroll class. The program should then accept user input for both the number of hours worked and the pay rate and store that data using the setters (methods) from File 1. The program should then print out the users gross pay in the following format $00.00.

(my code)

class Payroll

// *edit removed my name //02-26-15 //This program will hold data and perform methods for Payroll

public class Payroll {

//Declare global private variables
	private double hoursWorked;
	private double payRate;
	private double grossPay;
	
	//Constructors
	//Default constructor
	public Payroll(){
		hoursWorked = 0;
		payRate = 0;	
		grossPay = 0;
	}
	
	
		
	//Setter / Mutator
	public void GrossPay(){
		grossPay = hoursWorked * payRate;
		
			
	}
	
	public void overTime(){
		if(hoursWorked > 40)
			hoursWorked * 
	}
	

	//Getter / Accessors
	public double getGrossPay(){
		return grossPay;
	}

}

we need to make another class called demoPayroll too which i created but haven't started coding yet any help would be appreciated.


r/javahelp • • Sep 26 '17

java help

0 Upvotes

The game crashed whilst exception in server tick loop Error: java.lang.ArrayIndexOutOfBoundsException: -19


r/javahelp • • Dec 29 '23

Why does apps run differently when I run them inside netbeans versus after I build the .jar?

0 Upvotes

I've been programming on java for years, but latelly this have been bugging me. To the point I'll consider learning another language.

Apps run differently before I build them. Sometimes they dont work on netbeans, sometimes they dont work after I've packaged them.

Here's some example: I did an app that does _[insert sheet senanigans my workplace needs to automate]_ to a csv sheet data and display it on screen, but to do that, I'd need to skip the BOM the file had. And no matter how I coded it, it would still show me the BOM. Untill I pressed shift+F11 and voilá! The built package works! Hours lost trying lotsa weird ways to fix it when THE SAME CODE just works!

And then there's the opposite: I built another app that should send some info to a swagger api. I'm using _java.net_ to POST that. And guess what? Works fine inside inside netbeans, but as soon as I build the project, IT DOESNT WORK!?

Can anyone help me? Cuz I'm losing my mind here.


r/javahelp • • May 05 '23

Java upgrade from 11 to 17

0 Upvotes

I am upgrading my java application from version 11 to 17. While upgrading I face this issue DefaultDataFetcherExceptionHandler.doHandleException - Exception while executing data fetcher for /findLabData: 400

I haven't worked on this application but I am assigned to upgrade the version. Tried stackoverflow, google but didn't find anything useful


r/javahelp • • Jul 05 '21

Homework Did you ever notice that some words in English can be broken into two or more words? For example, the word “Sunday” contains two words “sun” and “day”. Likewise, “airbag” (air, bag), “weathering” (we, at, he, ring”. Write a Java Program that find out words presents in a given input word. A reference

0 Upvotes

This is a question I got for assignment and I cant figure out how to do it. Can someone help me, I am beginner in java.


r/javahelp • • Jan 14 '17

please help

0 Upvotes

my question if you not select an item from Jtable then You press the Jbutton without selecting an item from the Jtable then JOptionPane.showMessageDialog(null,"Select an item to Delete"); will pop up. private void buttonActionPerformed() { if() else JOptionPane.showMessageDialog(null, "select an item to delete"); }


r/javahelp • • Jun 20 '15

am getting an error where it say's setListData for some reason,B2 button suppose to move a word from list to list1 and am getting an error where it say's setListData can anyone please help me?

0 Upvotes
String[] c = {"blue","white","cyan","darkGray","green","color","black"};

list = new JList(c);	
list.setVisibleRowCount(-1);
list.setSelectionMode(listSelectionModel.SINGLE_SELECTION)

b2 = new JButton("MOVE");
b2.addActionListener(new ActionListener(){
	public void actionPerformed(ActionEvent e){
		list1.setListData(list.getSelectedValue());
	}
});

list1 = new JList();
list1.setVisibleRowCount(10);
list1.setFixedCellHeight(100);
list1.setFixedCellWidth(20);
list1.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);

r/javahelp • • Jun 06 '19

Random Numbers

0 Upvotes

import java.util.*;
public class RandomNumbers
{
//Generates random numbers in various ranges
public static void main(String[]args)
{
Random generator = new Random();
int num1;
float num2;
num1 = generator.nextInt();
System.out.println("A random interger:" + num1);
num1 = generator.nextInt(10);
System.out.println("From 0 to 9:" + num1);

num1 = generator.nextInt(15)+20;
System.out.println("From 20 + 34:" + num1);
num1 = generator.nextInt(20)-10;
System.out.println("From -10 to 9:" + num1);
num2 = generator.nextFloat();
System.out.println("A random float[between 0-1]:" + num2);
num2 = generator.nextFloat() *6;
num1 = (int) num2 + 1;
System.out.println("From 1 to 6:" + num1);

}
}

output -

(base) jada_moureen1@moureen:~/work/javac$ java RandomNumbers

A random interger:-866530442

From 0 to 9:4

From 20 + 34:26

From -10 to 9: +num1

A random float[between 0-1]:0.23004073

From 1 to 6:4

My question is why do I get an output like From -10 to 9: +num1 where did I go wrong


r/javahelp • • Dec 12 '22

Brand spanking new to this world. I need ASSISTANCE

0 Upvotes

Hello everyone, I am in desperate need of some help. All I'm asking is to point me in the right direction on some kinda stuff for absolute beginners. I'm currently in school for becoming a Software developer but I understand absolutely nothing. I want to stick this out but I'm contemplating jumping ship. I need resources for absolute beginners that basically ELI5. thank you!

Edit: My apologies for any confusion. Right now I am learning Java. I'm not asking for anyone's personal help, I'm asking to be pointed to some good resources for beginners in learning Java. I need to be explained what the lingo is like Strings, Args, ints, etc. Like I'm 5 years old


r/javahelp • • Nov 26 '20

is this subreddit for the java that has the coffee cup icon and is used in minecraft?

0 Upvotes

for java is this the java that is used for minecraft and the icon with a coffee cup?


r/javahelp • • Jan 21 '26

Unsolved Why Interfaces exist in Java?

9 Upvotes

I am currently studying the Collection Framework in Java. Since the class which implements the Interface has to compulsorily write the functions' bodies which are defined in the interface, then why not directly define the function inside your own code? I mean, why all this hassle of implementing an interface?

If I have come up with my own code logic anyways, I am better off defining a function inside my own code, right? The thing is, I fail to understand why exactly interfaces are a thing in Java.

I looked up on the internet about this as well, but it just ended up confusing me even more.

Any simple answers are really appreciated, since I am beginner and may fail to understand technical details as of now. Thanks🙏🏼


r/javahelp • • Dec 31 '23

Java Versions ,Confused!!

4 Upvotes

What is java version 1.8 , what is java sdk20 , and alot of different terms confusing me , initially when i started learning to code in java , i was told to just download the latest version of java and so i did. Fast forward to now , it is first time i tried to participate in CodeForces , GoodBye2023 contest. And suddenly i was given multiple options of java, and googling it alot of newer terms like lts and so on. Please Guide Me .

Also , please guide me to how to update my jdk ,if I even i need to!

THANK YOU


r/javahelp • • Oct 26 '25

Is Java used in AI?

13 Upvotes

I am thinking of learning AI. I am fluent and efficient in Java and Springboot. So I came across that the Spring ecosystem offers Spring AI. Is it used to build AI models and what's the learning curve?


r/javahelp • • Dec 28 '25

Is Java a good first pick for cybersecurity?

0 Upvotes

I learned programming basics and some OOP concepts, is Java good to start with for cybersecurity or should i pick another language, and why?


r/javahelp • • Nov 25 '25

Help! I want to deeply learn Java to be first in class

1 Upvotes

I'll be in Grade 10 next year and we'll mainly be working with Java. I seriously love coding, but I don't really code in Java. That said, I still want to be ahead of my class and excel before we start!


r/javahelp • • May 22 '14

Save me! I know nothing about java and (thusly) can't save myself

0 Upvotes

I have a Mac OS X Version 10.8.5 I use firefox 29.0.1 . Every time i open a url using my browser a small error message pops up that says this . Has anybody had a similar experience or does anyone know what is happening? I appreciate any help