Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

With more than 25,000 members, join one of the biggest and most active Java Communities on Discord! ☕

Join

java-help

❓︱qotw-answers

Help for revisiting Java

Hi everyone!👋 I hope you're all doing well. I’m Portuguese and I'm a student, and I'm currently revisiting Java. I studied it 2 years ago, but I feel like I've forgotten a lot since then, especially regarding Object-Oriented Programming concepts like classes, objects, inheritance, and polymorphism. If anyone has any suggestions for resources or tutorials, I would really appreciate it! I’m eager to learn and improve, but I feel a bit lost right now. As you know, most articles are in English, so I don’t mind reading in English....

Java Devlopment Suggestion

Should i have to learn about testing as a java dev or should i have to cover my core knowledge like Orm , Spring boot , React etc and then start to learn about testing !

Personal-finance app dividing into class

Hi! Like most people starting out with coding, I've made a code of a finance-app in one single file. Now, I'm trying to devide my code in MyAccount.java to a second class CSVHandler.java, but I am encountering some errors. How can I best face this, and do you have any tips when you're at that stage where you have ~360 lines of code and want to divide it into maybe some classes? I really appreciate the help and if it would be easier to go over it together in a vc I would be down for that too! Tha...

Where does Spring's HttpServiceProxyFactory create the client proxy implementation?

I am trying to understand how using the "@HttpExchange" annotation works. From what I know, it creates an implementation class that has the Http methods I've defined in my interface. But unlike lombok annotations I can't find in my project how this class is implemented? Or is there no actual class that's being generated at compile time? I can't seem to find resources going into this, and looking at the actual source code just left me confused. "@HttpExchange": https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/service/annotation/HttpExchange.html...

Java Processing, how do I flip a PImage?

it seems like something so simple but im really struggling to find an answer online

Switch to Java and Spring Boot for backend development.

Hello! I've experience developing with Python and Django ... I am considering making the switch to Java and Spring, Spring Boot for more opportunities ... I was wondinering if you had same experince .... if so what were the challenges you had in the proccess?

homework please help easy

Just implicit parameters, constructors, methods, we just started the course (no code provided it’s just implied)
No description

how to find WSDL file location in my SOAP webservice?

hey guys. i have soap webservice that is running on my server. i can call it with postman: http://dev.mycompany.lt/bgw/perlas then i add needed body and receive expected response. everythings fine. but i was wondering what is the location of my wsdl file? can smb help me out? thx...

Help

I am working on a plugin updater / version checker. I will start by sending the code first so it is easier to explain the issue ```java public final class SkriptPlus extends JavaPlugin { ...

urgent help

Would someone be able to help me with my lab urgently? It’s about putting in math expressions and checking if the parenthesis, brackets, and curly braces are balanced or not (open and closed on both sides) I have my code but im having this constant error and im stump on how to solve it...

Need Study Buddies for learning java from scratch.

Need Study Buddies for learning java from scratch.

hello

Im new in java, I would like to know how arrays work

Correct Sintax for JOptionPane

Hey! I'm a newby on java and i'm learning using a really old manual that my HS gave me to learn. My problem is that i can't get to the correct sintax to use a JOptionPane. If i use the one on the book i'm given like a 293837 errors but i couldn't find a clear explanation on google. Can anyone help me? Thx a lot :))

Packaging maven submodules

My project has different components and everything is tied together with grpc, so everything is inside of one maven project to start with: My maven submodule structure looks like this: ``` root +- interface...

Get method name within an annotation dinamically

Hi guys, is possible to get the method name from which a custom annotation is being called? E.x. ```java @MyCustomAnnotation public void myMethod(){}...

Testcontainers and application-test.yml

I have a question do i need add properties to application-test if im using testcontainers for mysql for example: the part of initialize: ```java...

Urgent, help me!

Hi, I'm currently working on a project using Flutter, TypeScript and Firebase. But have some trouble with it, if there is anybody can help me on this project, DM me, plz....

JPA When Primary Key Not Id

I'm new using spring and jpa, i notice when my primary key is not id is gonna effect performance and take more time for process when i try save/insert data, is it just my conclusion but is it true when primay key is not id (reference_numbervarchar) gonna doing select all data for checking if primary key already exist or not? I hope i could still using reference_number as primary key and prevent jpa to select all data and just try insert data and throw error when primary key exist...

JavaServer faces

Hi everyone, good evening, I'm Brazilian and here in my country there is no free material about Java Server Faces to study. Can anyone here provide me with some free material that can help me please? It doesn't matter if it is in English.

Spring gRPC Contexts don't work as expected

Hey! I'm using Spring Boot gRPC and encountered the problem that my set context (which I prepare in a @ServerInterceptor) is not used in exceptions at @GrpcAdvice ExceptionHandler. It handles Context.current() generation 5, while I intercept all incoming calls with a context of generation 6, in which I have prepared the user's metadata. The service methods also work with Context.current() with generation 6 and have access to the prepared metadata, but the exception handler does not. How can I tell my ExceptionHandler to use the latest context generation (which should be 6 and not 5)? Thanks in advance!...