Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!

Join

java-help

❓︱qotw-answers

Programming Logic Concepts

So I am a year into Java and learnt a lot, but the problem is that I don't know most of the programming concepts or algorithms (as I focused on different stuff like Minecraft dev, Android, JavaFX, LibGDX, etc.) that have only logic like the Sieve of Eratosthenes and Goldbach'e Conjecture. Can anyone give me concepts to learn that will be helpful in Programming competitions? I can send some of the questions of the programming competition in the previous years to get help in it. Thanks!

Stream, Collections internals

Hey could anyone break down stream() method in collections and the internals of how StreamAPI works with Collections API very hard to grasp the moving parts

Connecting Spring application to remote Postgresql database

So basically when I am connecting my spring boot application to my self hosted mysql database it is working properly but when I am trying to use the remote postgresql database url it is continuously showing error connection failes tries a ot of ways but still the same. The databse I am using is render postgresql database.

JDBC connection issue

Are the best ways to diagnose the JDBC connection issue to our db? Our team has already tried to increase maxPoolSize but it's not helping. We're getting around 100 connection stuck in waiting when the issue happens. Our codebase is pretty big, so it's hard to go through all transactional calls, etc.. Any other things to try?

Maven archetype quickstart issue with JDK 25?

I'm new with using Maven (Via IntelliJ IDEA), and I found maven archetype quickstart (v.1.5) as the most recommended 'quickstart' for projects. I tried it and it worked successfully - src folders and pom.xml generated, but it uses JDK 17. I did some google search and I found that archetype quickstart only 'supports' up to JDK 17. Now, I'm trying to make it work with JDK 25. Keep in mind I have no knowledge with Maven, but I want to use it to finish a simple project of mine (learning Maven properly will come after this as I'm on a deadline). ...

microservices question

I have a auth-service that stores users' credentials like emails, passwords etc. and user-service that stores users' profile info such as usernames, avatars, how do I handle user registration process? I have a gateway written using spring cloud gateway; when the user makes a request to register, they send an object with email, password and username, I want the email and the password to go to auth-service and username to go to user-service. Is it reasonable here to allow for communication between...

Suggestion for free source material for java development

I'm looking for a free source to learn java dev, there's alot in yt but dk which one to choose. Need help.

General Advice for my current state

Hi everyone! 👋I'm a 3rd year Computer Engineering student from Mumbai. I'm really interested in contributing so that i could get handson experience of how professional works..but is it feasible for a person like me to get handson experience at this stage?where should i proceed from ? Background(Based on what i build in my personal projects): Spring Boot + React developer Used Docker, PostgreSQL, CI/CD....taken some help of cloud infra ...REST APIs i would highly appreciate any guidance from you all from where to start to be good at this field ..honestly i am a fresh cookie got no idea how things work professionally and in the real world..any advice would be appreciated...

Code debbuging

I'm doing a project, the code is finished, i think, it runs and all, but some of the tests that i had to run with it are giving wrong outputs, and i honestly have no clue about what's wrong... could someone help me with it?

Maven Tomcat Plugin help

So I generated a basic web project in eclipse and it would run fine on the built in tomcat server instance. But I wanted to run it in Intellij CE, I searched around and also asked chatgpt, it recommended using something called tomcat7 maven plugin, and to use the run command. But I can't find any clear information regarding this plugin anywhere and wanted to ask here if there are any resources related to it and also if it's a good practise to use it. Thanks in advance....

Roadmap for backend-java

Can you guys advice me a roadmap that includes backend stuff must be known as a backend developer? I currently know Java and want to continue my journey with spring boot. But i only know java not anything else. Just html and css. I want to focus spring. And i want to know what should i mainly learn as a java developer?...

help from 0

hello need help from 0 to hero for coding

Free way to learn Java

I’ve done code academy and thats not free and I need a free thing

ı need help in my homework zodiac sign program

it is my first year on university but ı took a third grade java class and ı am not even computer science student so ı learned some things for first project which is ı need ı already did a functional menu that can go main and sub menus without crashing and for the 2-3 days ı am working on a program that will take input from user and says what is the users age and after that our program will show our users zodiac sign ı thinked about some parts but ı completely lost that ı can not figure out how to procces users age with using java time method that it ı do know we will use user input for zodiac sign but ı do not know how to procces user age and giving exceptions to string inputs for example user inputs aa for date my program will not crash
any help appreciated ı am sorry for my bad english...

java: Cannot start javac process

I'm using IntelliJ and when I try to build my Spring Boot project shows this message. java: Cannot start javac process for loans: it is configured to use JDK 0, but IDE supports compilation using JDK 7 and newer only. Consider associating the module with a supported JDK version. Note, that it is possible to keep the current Java language level to make produced *.class files compatible with Java 20 even when they are compiled by a newer compiler version. ...

What is Mono<T>

I'm having trouble understanding this thing, can anyone explain it in simple words?

[Kotlin] Design help needed, Class instance event subscriptions while splitting logic from data

This posts language and code is in Kotlin. Kotlin is based on java and pretty similar but there are some small differences. I am mainly seeking for a good way to execute this. You can find the full Code I'm talking about here: https://github.com/HacktheTime/SkyHanni/tree/tutorials/src/main/java/de/hype/bingonet/shared/tutorials Due to a set of factors I was told by someone else that I should split the logic from the data. So far so good....