Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!

Join

java-help

❓︱qotw-answers

Max/M4L first java test

Hi guys, I duno if u can help me out, since this in Max environment, which may be specifics, but this fcnt should give value 4.3 but gives nan. This part of tuts, so I continue in that, but I already smth missing so would like to figure it out. ...

Tiles in a 2d Java game

In working on making a simple tile-based 2d game and I was just wondering about something. Say I have a setup like so; 0 1 2 3 4 5 6 7 8 9 0 0 0 0 0...

how to solve this without loops at all

is there a way to solve this without any loops at all? (no for loops)
No description

method .getText(); is no longer recongized after being used two lines ago

Im learning automation testing with selenium and WebDriver method .getText(); is not longer auto populating and when i type it in i get an error if i hover over the text it says ( the method getText(); is undefined for the type list <WebElement>) I have updated my browser as well as my dependencies selenium as well as testNG . I have also updated ms edge driver at this point im not sure what is wrong the code is working i have used this method several times and now it is not showing up
No description

have two different projects open on intellij

im working on a library and i want a project that uses it to be separate but still acessible. is it possible to have them both open in one single window?

java question about strings

is it better to work in Java with strings using library that allows operations on Strings or it is better work with strings as an array of chars (so subsequently use operations where treat the string as an array of chars)

Api Key Spring boot

I have an api Key in my application.properties file in my spring boot app but when I try it to push on the GitHub so it gives me an error that the secret key will not be pushed to GitHub ! .. Can someone help me what to do in this case ?...

Seeking new work as a software dev

I’ m a talented FullStack Web & BlockChain developer who has strong can-do attitude and high responsibility. Followings are my experience and skill sets: - ​​Frontend: React/Redux, Next.js,Remix.js, Vue/Nuxt.js, WordPress, HTML5, CSS3, JavaScript/TypeScript, jQuery, Tailwind CSS, Bootstrap, PHP, CI - Backend: Node.js, Express.js, Nest.js, Laravel, Golang, Python, java/springboot...

Serious problems with Maven

As much as I'd like to be concise, this will take a while to explain. I wanted to make simple annotation processor for my side project - http server with sort of MVC model. I added annotations @Mapping and @Mappings (@Mapping is @Repeatable) and I proceeded with creating the processor. For this I used Google's AutoService, however it wouldn't generate the files (Maybe I did something wrong?). So, I included maven-compiler-plugin in my build configuration, but it still wouldn't generate the files. I started digging deeper, running mvn clean, mvn install, mvn compile, yet it almost always results in build failure. The only time it gets to work is when I delete the plugin mentioned earlier (which means that no files are generated). It's worth mentioning that my project has a umm unique structure, and so here it is: ``` HttpServerEnv/ ├─ Application/ │ ├─ src/...

Need ideas for separating my client, server, and common code for my game

Title isn't good, but it's the best I can think of. I've been working on a game for almost 17 months now, and when I just tried to add multiplayer, I came across an issue. I have my world separated into modifiable chunks. These chunks have code for rendering and storing the world data inside. Both client and server need the storing part, but only the client needs rendering part. I can't think of a good way to separate them so that both client and server get their versions of common, but client h...

help

i feel rlly stupid btu wtf does this mean

Spring boot cookies won't obey application.properties settings

Hello, I have in application.properties the following : ``` server.servlet.session.cookie.same-site=none...

Why does creating a subclass of some Exception, throws this error?

Custom exceptions are supposed to be caught if occurs, not intentionally thrown. ```jshell> class WrongInputException extends Exception { ...> public String toString() { ...> return "ERROR!!";...

authenticationManager threw StackOverFlow

My end point http://localhost:8080/auth/login doesn't work, it always throws StackOverFlow. java.lang.StackOverflowError: null at org.springframework.aop.support.AopUtils.isEqualsMethod(AopUtils.java:166) ~[spring-aop-6.2.2.jar:6.2.2] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:175) ~[spring-aop-6.2.2.jar:6.2.2]...
No description

Lombok @Builder error

I'm getting this error:
java: cannot find symbol
symbol: method builder()
java: cannot find symbol
symbol: method builder()
when using the .builder() method on an object that I previously marked with the
@Builder
@Builder
annotation...

Extend/Inherit java class - how to?

I have a repo with some kind of config in the style of a YAML file... As an example its something like this: ```yaml something: calling-birds: four french-hens: 3...

Jwt token

I am not able to extract the header from my spring boot app controller Spring boot backend ```@PostMapping("login") public ResponseEntity<?> login(@Valid @RequestBody AuthRequest authRequest, BindingResult bindingResult) {...

Java College Project

Hey everyone, I'm about to start working on a Java project about a task and event scheduling system in a calendar based on urgency. For a task, I'll have the following fields: taskId...

Dynamically create redis keyspaces

I have a spring boot, thymeleaf & redis app and am struggling with finding a way to provide to create a dynamic keyspace name that is pojo class name plus session id for each session, it's not a shopping cart but same idea, a link to example doco would be appreciate?