Category "java"

What is use of the annotation @JsonIgnore?

I'm joining tables with one to many cardinality, the classes I'm using refer to each other. And I'm using @JsonIgnore annotation with out understanding it deepl

Cast server screen to client using java

I want code for server and client. Whatever is displayed in server screen should be displaying the same in client screen in jframe using java networking. I ha

Why is setting TransactionManager as JPATransactionManager in a Step not correct?

I am working with Spring Batch and JPA and I experienced the TransactionManager bean conflict. I found a solution by setting the TransactionManager as JpaTransa

var keyword gives an error in IntelliJ (Wildcards may be used only as reference parameters)

When I write this code in IntelliJ, it gives this error: Wildcards may be used only as reference parameters. Here is my code static <T extends Iterable<

How to throw my own Exception with a pre written method in Java?

I have written my own Exception but I can't throw it. The application still terminates and gives me the standard error Message: Exception in thread "main" java.

Java Testcontainers - Cannot connect to exposed port

I implemented a POP3 server and client using javax.mail just to try doing integration testing with Docker. So I created two Docker images based on the openjdk:8

How to sort a array with a function and using a code like this in java

Hello i have a java Code where i the Programm should sort the variable num but it only gives out some weird strings. I would like if you could help my with some

filter search bar not showing up

I'm trying to create a filtering search bar to sort through a limited set of data pulled from an API. The code compiled successfully, however despite having an

How to split input text file that has string and doubles?

I am to read from an .txt input and sort into array by line (read: first name, last name, grade1, grade 2, grade3) but I am having issues. I am assuming that I

How do I take the repeated values in an array and print out the number of duplicates using a for loop ?(Java)

I have written the following program which takes the duplicates in the doubleArray and adds them to a counter. Then I wrote a for loop to print out the values i

Running JAR from BAT file cannot find natives path

I am running my JAR from a BAT file on Windows 7 x64 machine. Lately I added native .dll files to project, so now I need to add the path to the BAT. My project

Inappropriate Intimacy in factory

My Factory has dependency on Repository. It calls many methods from Repository. Lets say something like this: class CarFactory { private Repository reposito

How to Imbed NiceHash Website Widget into Android App? Would it be WebView?

I would like to put this Profitability calculator from: https://www.nicehash.com/widgets#profcalc Where the site says to use: <iframe src="https://widget.nic

How can I use "NER" for German Language with stanford-corenlp?

I am trying to use nlp for german language but it does not work! I was making the pipeline and then NER to find the entity of each element in sentence which is

Returm to a specific line or place

I'm self learning Java for a few weeks and started testing my (basic) knowledge. I was trying to create something like some formula calculator, with an index se

Spring boot application fails to start after upgrading to 2.6.0 due to circular dependency[ unresolvable circular reference] [closed]

Spring boot upgrade Error Spring boot application fails to start after upgrading to 2.6.0 due to circular dependency Error creating bean with

spring data extension for quarkus datasource name

I want to use the spring data repositories in my quarkus application with jpa. As long as I use the default datasource and no named persistence unit, I'm able t

Adjacent package does not exist

I have a public class Mountain in Four\ Seasons\ Lab/things/Mountain.java and try to import the class public class Triangle, which is in Four\ Seasons\ Lab/shap

What method in Java returns the absolute difference of two integers?

Is there a method in the Java Math class that returns the absolute difference of two integers? int absDiff = 8 - 15; int answer = 7;

Filter a tableView leaves some data in a specific column

I have made my table view with column and everything works fine. just one thing that I have remarked is that when I filter rows, some data stay in a column that