Category "java"

How can I set up my keybinds in such a way that the character does not pause between inputs?

I'm attempting to make a simple bullet hell game and am struggling to make smooth movement mechanics for the character. Here is my current code: package bulleth

I am trying to make a smart contract transaction. My transactions never gets mined

I have a smart contract deployed. Whenever I try to perform a transaction, the transaction starts, but that's it. The transaction never actually takes place (or

How can I do in java spring boot not try a database connection on start up?

I need to know if there is a way in Java Spring boot not to try a connection at startup. What I am trying to do is an integrated SQL server connection. I am try

How do I configure JSF Project in vscode?

I am trying to setup things for JSF Project in VSCode but I dont know how to do it, 'coz wherever I check there are Maven(something) specific configurations and

Ways to update many nested Documents with MongoTemplate without creating additional Update object

I use MongoTemplate to update a document using findAndModify() method. There are nested documents inside one document. Example as following: @Document public cl

Don't wait for CompletableFuture

Let's say I have some logic that I want to execute in a separate thread, and then continue with the remaining logic in my method. If I don't care about the resu

Why does my JavaCard Applet work on my JAVACOS card but not my NXP J3H145 or ACOSJ card?

I have written and successfully installed an apple tonto a JAVACOS smart card. I can install this applet onto my NXP J3H145 and ACOSJ card, but when I try to in

check if text is bold

I am testing the output of a search and I want to be sure that I will get the text and that it would be bold. For example I want the name to include "ar". As an

java.lang.IllegalAccessError: issue coming while running maven build

I am getting the below issue while trying to run the maven build . Project runs fine in java application but while running maven build getting the below issue .

Error: A JNI error has occurred, please check your installation and try again in IntelliJ IDEA for Scala-Spark Program using SBT

import org.apache.spark.sql.SparkSession object RDDBroadcast extends App { val spark = SparkSession.builder() .appName("SparkByExamples.com") .maste

Java ORM vs multiple entities

I have a class Health Check - as part of the class I record how many parasites are seen (enum NONE, SOME, MANY) and also the location of the parasites (enum HEA

Apache poi PowerPoint slide masters - not generating footer with page number

I have problem with slide master layout which contains page number and static text. I have them on my layouts but they are not appearing once I'm generating pre

Aerospike filter expression on boolean fields not working

I've written the following Aerospike filter in Java. Both Field1 and Field2 are booleans. For some reason, the "filterByField.ValidBoth" condition does not yiel

Android ViewModel's LiveData not updating the UI

I have the following fragment: todays_training_fragment.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/ap

Parsing command line args[], with flags and without using a third party lib

I have a requirement to parse some command line arguments in a Java application without using any third party libraries (like Apache CLI or JCommander). I can o

Get a Map<String, List<String>> from List<Pojo>

I have a Student class with the following structure: class Student { String name; int age; String grade; } I have a List of Students (l

FutureTask in android

I'm very new to Android so maybe my question is a bit of a beginner. I want to use the futureTask method in my program, but I really do not know how to use it.

Can't click on Submit button, not working in automation testing, works manually

I have a standard form with 2 text boxes to fill and a submit button. The Submit button suppose to work after filling in the first mandatory text box. It works

Decoding Base64 String in Java

I'm using Java and I have a Base64 encoded string that I wish to decode and then do some operations to transform. The correct decoded value is obtained in JavaS

SpringBoot | Getting null after success response body when request with token

Returning a response in SpringBoot project like this: @GetMapping("/users") public ResponseEntity<List<UserDto>> getUsers() { return ResponseEnt