Skip to content

Tag: java

Add more element to a 3×3 2D array

I’m writing an inventory list program, that provides the user with option of adding an item to the list of exiting the program. To add an item the user enters 1 and is promoted to enter the item details( item name, price and quantity of the items). The information enter by the user is entered into a 3&#…

Application not compatible with older Android versions

I’m generating an Android application via mvn -Pandroid gluonfx:build gluonfx:package. Here are the versions from the POM: Using graalvm-svm-java17-linux-gluon-22.1.0.1-Final The application works well on Android 8. However, when trying to install it on Android 7.0, a message pops up saying that the app…

Locking execution within CompletableFuture

I need to post-process result of CompletableFuture.supplyAsync execution to get intermediate result. My code looks following In a result I’m facing with java.util.concurrent.CompletionException: java.lang.IllegalMonitorStateException on .thenAccept(resultPerBatch -> { line Seems like I’m using …

Containerizing executables in Java

I have a CEF (Chromium Embedded Framework) application I am controlling with Selenium. Normally the application does not allow multiple instances of it to be running at the same time since it modifies directly its root files. I need to be able to run multiple instances (controlled by Selenium) though and some…

Search in List of X509CRL’s

I have a list of X509 CRL’s. I need to identify some of them somehow. Right now I do it using issuer: But there’s gotta be a better way to do that using knowledge of CRL file format, maybe with comparing public keys or something like that, but I don’t know much about X509CRL’s. Can som…