Category "java"

file from one node to another node?

I would like to add a database to it so that the information is stored.

Java Swing - How can I make a frame "mandatory to interact with"?

I'm making a game in Java Swing. Every time the player levels up I display a new frame on top of the one containing the gameplay which has some options on what

Remove item from Nested list Java Stream

I'll appreciate some help with this please. Assuming I have "bookingId": 4, "flights": [ { ... "fl

How to get group and group attributes in Keycloak

I am using Spring Boot, Bitnami/Keycloak:latest, java 11. I want to get the group and group attributes before the request reaches the controller because I need

What is a NullPointerException, and how do I fix it?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause

is there a way to create a java class lombok field with a period or other custom character?

How can I make a field name have a period in it? Why? Because this eventually gets translated into JSON that is passed to a service, and the field needs to have

Selenium, default values assigned to web elements instead of the ones i am search for

I am sending text to an input field then within the array of elements searching for specific by checking if element text equal street address As you can see i

Is it possible to make java project that use another library which implements AOP using aspectj mave plugin to use the annotations from the library?

I have java library that I created which implements AOP using AspectJ runtime and AspectJ maven plugin. The AspectJ point cut is getting triggered when I add th

How can I change a value in a set method depending on a boolean's answer in Java?

I'm trying to change the VAT rate of an item depending if it's a luxury item or not. I've tried using an if inside of my set method but it only uses the pre-set

How can I get N smallest number in an array?

I'm trying to get the N smallest numbers (given by the user) in an array without using methods like sort()... in the last step, I keep getting only the smallest

error gradle when update to bumblebee android studio version

today, i update to bumblebee android version, and i create new project and i import some lib, include dagger-hilt. in build.gradle (module) i insert: plugins {

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified

App crashes at runtime with the following error : java.lang.IllegalArgumentException: maa.abc: Targeting S+ (version 31 and above) requires that one of FLAG_IM

Can I set readOnly false when I use findById with JPA

I have a problem with modifying data while setting database replication Before DB replication, I get data that I want to modify using repository.findById() and

What is the disadvantage of using a ForkJoinPool when it is not needed?

Imagine a scenario where a task can be divided into sub-tasks, each of which does some long running process. Assuming that this heavy task occurs only in 5/100

How to fix an error with connecting an IP camera using opencv in java?

I downloaded the app to the IP camera phone and I want to get the video via opencv,but it gives an error public class Main { static {System.loadLibrary(Core

How to "require" module "gwt.user" On Java, JDK17, "module-info.java", Netbeans, Maven

I am trying to keep up with the new changes in Java, one step a time. I am updating my old libraries with module-info.java files. I have a very simple project n

Distinct and List of other column in postgresql

I am using postgres DB and i have table with two column name and sal . name Sal Raunak 10000 Raunak 5000 Rahul 500 Raunak 300

Rest API: HTTP Status code for Informational Message

If end user not send query parameter then i want to return a message like: return Response.status(500).entity("If you wish to download whole offerings data send

FastJson with putDeserializer leads to StackOverflowError

Deserializing object using FastJson with putDeserializer leads to StackOverflowError. What am I doing wrong? test.json { "openapi": "3.0.1", "info": { "

Validate parameters passed into Constructors during compile time

In a huge project with tens of thousands of Java files there are a couple of Java classes where developers may pass in strings as parameters to a constructor cl