Category "java"

Firebase Query in Android returns random number of items altough multiple items match the query

I am using the Firebase Realtime database and I constructed a query for the node "Orders" which should return all items whole attribute "orderID" is equal to 2.

Generate P2SH bitcoin address from WIF in BitcoinJ Java

I'm trying to create P2SH-Segwit bitcoin address from the WIF private key. I'm using the BitcoinJ library in Java. See the following code. String base58PrivateK

how to update json array in java with existing json array value using java. Value are not updating in external json file

JSON file: [ { "name":"John", "city":"Berlin", "job":"Teacher" }, { "name":"Mark", "city":"Oslo", "job":"Doctor" } ] JSONParser parser = new JSONParser(); JSONA

If s3==s4 is false, then how come s1==s2 becomes true? [duplicate]

I am very wondering after executing the below java code. public class HelloWorld { public static void main(String...strings) { String s3

liquibase.exception.DatabaseException: ORA-01950: no privileges on tablespace 'VMSS_TBS'

Initially I was getting this exception while starting my service An attempt was made to call a method that does not exist. The attempt was made from the followi

Log4j2 + AWS JAVA LAMBDA + CLOUD WATCH LOGS

I am using the following configurations in my code but cloudwatch logs are not getting generated. Log4j2.xml is present in main/resources. I am following the AW

When I Update my Phone to Android 12, Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I was working on my project perfectly since I Update my phone to Android 12 unfortunately when I run the project to my phone this Error appears: Installation d

Keep data in ListView after refresh - Android Studio

I have a Main Activity and PersonListView Activity. In Main Activity, there are some input text and when click save button, it will send data and save to listvi

"no_valid_keys_or_signatures" Error Calling DocuSign API through Java SDK for OAuth 2.0 Authentication

I am upgrading our application's authentication method into the DocuSign API from the DocuSign Legacy Authentication to the JWT Grant OAuth 2.0 Authentication.

Azure build error: "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"

When building Flutter app in azure devOps, I receive this error: Build file 'D:\a\1\s\android\app\build.gradle' line: 24 * What went wrong: A problem occurred

Distribute cache between Pods in Kubernetes with Hazelcast in Spring boot application

I have a Spring boot application with Hibernate L2 cache enabled. I integrated Hazelcast as cache provider for Hibernate. My application runs on Kubernetes and

Why cant you subract a value from a for loop within an 2DArray but works vice versa(Adding a value to the 2DArray)?

Just like the game minesweeper I want the "O"s to change to "1"s if the borders are next to the "X"s, the board[i][j] will only change to "1"s if and only you a

Breadth-first traversal of a tree of slider puzzle configurations java

I need help with my PuzzleSolver class. I get a notice saying Note: SliderPuzzleSolver.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:u

How convert/adapt ByteObjectHashMap to a JDK Map?

Primitive maps don't seem to implement java.util.Map. If I have a function, accepting JDK Map as an argument and now want to pass eclipse collection implementat

How to make random non-repeating numbers?

I made a code that could generate random numbers, but my issue is that sometimes it would repeat two or three numbers from time to time. int winnum[] = new

Simple Java Animation using JFrame and JPanel

Ok, so the program's purpose is to just draw and oval and move it across the screen. The code compiles on Eclipse without an error, but when run, no oval is dra

com.sun.jersey.api.client.ClientHandlerException when trying to make an Envelope on DocuSign API

That's my code, I'm trying to make an Embedded Sending within my app, I have got to this point deconstructing some code from the API usage examples (that in my

How To Build React App Through Gradle Task

I am a new in gradle task creation.I am using Spring application as backend and in frontend I am using React App.So now My question is how can I build react app

How can I await at least specified amount of time with Awaitility?

I my test class I really need to sleep for some amount of time. It's an integration test involving periodic remote call. for (int i = 0; i < 16; i++) { /

Math.ceil for positive value greater than zero? [duplicate]

The following code is giving me a wrong answer and I can't understand why. int x = 10; int y = 15; System.out.println((int)Math.ceil(