1,916,597 questions
-1
votes
0
answers
26
views
How do I convert java .jar code to typescript?
I have a refactor job to convert contents in a .jar file into typescript. It is a pretty big codebase with many proprietary dependencies. So all the dependencies also have to be converted to TS. How ...
Best practices
0
votes
0
replies
17
views
Infinispan as Hibernate 2LC and Spring Cache
I have a question about Infinispan when its being used with Hibernate as a second level cache, while also being used as a regular cache with Spring.
Specifically, I have an Spring 7 application and I ...
-3
votes
0
answers
47
views
download Java 8 for Macbook with M1 chip (2025) [closed]
I am trying to download an older version of Java v8 that is also compatible with a Macbook M1 chip (2025). Where would we download this from?
Best practices
0
votes
0
replies
33
views
Sorting with MongoDB Java driver during aggregation pipeline by a Mutated(?) value
I am executing the following query on my MongoDB using the Java driver
private static AggregateIterable<Document> averageVendorTotalSent(MongoCollection<Document> collection) {
return ...
-3
votes
0
answers
60
views
Java ConnectException: Connection refused [closed]
Recently, I've started a project about making a game of Otello on the command line. The game needs 1 server and 2 clients to play. I've finished development of the game part, and moved on to the ...
3
votes
1
answer
79
views
Template method return type not matching returned instances
I am having a problem with a static template method in an interface. There is nothing special about the interface but the method declaration is a bit tricky. The code looks like:
public interface ...
-1
votes
0
answers
21
views
Swift Mt To Mx transformation [closed]
I’m currently working on transforming MT messages to MX format, using java prowide library
and I’m having some difficulty identifying how MT fields map to MX tags. If anyone has documentation or ...
Advice
0
votes
6
replies
104
views
How would you describe the Java programming language to a beginner?
I've noticed in my Information Systems course that many people still lack the specific knowledge to program, and don't even understand a new and complex language like Java. We're in our third semester,...
0
votes
0
answers
67
views
Why does my HashSet allow duplicate objects in Java even when values are same? [duplicate]
I am trying to store unique objects in a HashSet, but it still allows duplicates even though the values are the same.
Here is my code:
import java.util.HashSet;
import java.util.Set;
class Student {
...
0
votes
0
answers
104
views
BufferedWriter Writing Random String as NULL value
I'm working with legacy code, the code was written in java 5 and 6.
Recently they updated the machines where this code is used to use Java 8. They recompiled this old code in JAVA 8 it did not fail ...
-3
votes
0
answers
54
views
What additional JUnit tests could improve coverage for a QuaternaryNumber class in Java?
I've implemented a QuaternaryNumber class in Java that represents numbers in base 4 (quaternary system). The class extends Number and supports arithmetic operations like add, sub, mul, div, and ...
6
votes
1
answer
88
views
JavaFX ListView programmatic selection scroll only when item is outside visible range
When selecting items programmatically in a ListView, I want the scroll to behave like native keyboard navigation — scroll only when the selected item is outside the visible area. Using listView....
Best practices
0
votes
4
replies
44
views
Synchronizing requests on body property value
Suppose you have a REST server. Spring WebFlux, Hibernate, the usual.
You need to make sure all POSTs with the same body property value are processed sequentially. Say, "slotId": no more ...
-1
votes
0
answers
46
views
OpenHTMLToPDF custom TTF fonts not applied (NotoSansArabic). It falls back to default font
I'm generating a PDF using OpenHTMLToPDF (PdfRendererBuilder) in a Spring Boot app, and my custom fonts (ttf) are not being applied. What am I missing for OpenHTMLToPDF to properly apply custom TTF ...
Best practices
0
votes
7
replies
94
views
Is it better to store data for a modular system in sets of arrays or to use reflection to get the data straight from a class?
I am self-taught, so I apologize if the title uses terms incorrectly.
I am trying to write a Minecraft mod that adds some RPG mechanics to the game.
BUT more importantly, for this question, it ...