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!
JoinJCH
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!
JoinSpringboot...
Trying to run my application using terminal using command : 'mvn clean package -Dspring.profiles.active=dev -e'
Getting Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project journalApp: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTag :: UNKNOWN
Can anyone help with this?...
When to use `.Math.decrementExact(int x)` instead of `x--`
I read through the Oracle: class Math and was curious, why it even exists, when ive only seen
-- yet.Java spring boot dev and spring boot web and open ai and jte
I build study guide generator with Java and spring boot but I keep getting this error. Does anyone know why and how I can fix this ?

Class name
```java
// The purpose of this class is to check what object was tapped on the screen, UI element or brick.
// This is to reduce the conditional logic required for the listeners to check whether the event is relevant to them.
public class InputCategorizer : MonoBehaviour {
[SerializeField] private GameObject xrOrigin;...
ANSi escape color sequence doesn't print
so this is my code handles stdout, stdin, & stderr for such application, like jshell, nix, etc. but the code doesn't print the colors, for stdout nor stderr, i was wondering where is the issue could be (this program uses jline)
School libary Managemnet
bro like can anyone help in in make a school libary management sysstem using java
Architecture question
If I'm planning on having 3-4 services in my project, is it reasonable to structure it as a single monolith in a DDD style instead of going with microservices where I would have these 3-4 separate services, each DDD? I feel like the latter would add too much complexity
how to check if i used a .method()
```java
import java.util.List;
import java.util.ArrayList;
public class SpieleweltKlasse {...
Need help with algorithm
PLEASE HELP ME
Problem Statement
You are given an array of integers. You need to implement a data structure that supports the following operations in O(log n) time:
Range Sum [L, R] (0‑indexed). Return the sum of all elements in the subarray from index L to R inclusive....
wrong output with toString()
```java
import java.util.List;
import java.util.ArrayList;
public class SpieleweltKlasse {...
java.lang.NoSuchMethodError: org.foo.bar.methodName()Z
I am attempting to develop a mod for a Java game (surprisingly not Minecraft!) built on Java 7. I have access to the game source, and built the .jar myself. However when I try to run the game to debug my mod, I am greeted with a freeze upon loading some game-world objects with a "NoSuchMethodError" for a method that clearly and demonstrably exists in the decompiled game .jar - albeit obviously without the
Z. Out of curiosity, I built an altered jar that catches that error, and it just hangs on an identical NoSuchMethod for a different method in the same class. I already tried clearing my IDE cache and rebuilding the game using a different SDK; no change.
Any ideas on how to generally fix this?...Map with Generics
I got a class called
EnchantmentStack<E extends Event>. And in that class there is a method called trigger(E event)
And when you create a new EnchantmentStack, it gets stored in a map like this:
Map<Event, List<EnchantmentStack<?>>> ...AP Comp Sci Java Assignment
How can we write methods to determine the starting point of the starting point of the 2nd or 3rd location of a substring in a String?

Java 2d array and classes help
im in this situation that i cant really find a yt video on that subject, i have 2 classes on to desrcribe the cell and a class that show each cell into a 2d grid, i dont know how make 2 classes interact with eachother.
Learn Java FX OR Java Swing?
I’ve heard JavaFX is much better to learn but that Swing is also good and is built in. Which is better to learn as of right now? Can one do something better than the other or is FX just way better overall?
DDD question
When creating models in the domain layer, how am I supposed to know which field in a model needs its own Value Object? Should I implement VOs even for fields such as userId, email etc. ?

