I have an array of bytes of a JAR file and I need to load all the classes from this array. How can I do this without converting this array to a file?
I am writing code that lets the user enter, search for and remove participants. Right now I have the JFrame that has a JMenu on it with a few JMenuItems. When I
I have a Java interface with several implementing classes. Each implementation class needs its own associated (sub)template. At runtime I add a collection (Li
My app offers the possibility to launch it through as many widgets as wanted by the user. To determine which widget trigerred the launch, I use an extra paramet
I'm trying to add an item to the ArrayList in a certain order Iterator<Rating> it = arr.iterator(); while(it.hasNext()){ Rating o = it.next(); int
So for this problem, my function is supposed to return the top-10 list of avengers with the most appearances (in decreasing order). In the Avenger class it is
How do I check if double is NEGATIVE_INFINITY and not POSITIVE_INFINITY? There is only one method in Double class isInfinite() which checks whether the double i
For example, I have someFile.jar. I can run it simply using java -jar someFile.jar. But I want to create some files (for example .deb file) to install this jar
I use Spring MVC (no Spring Boot) with HATEOAS in order to get HAL-FORMS with Affordance response like this: "_links": { "index": { "hre
I have set up in-app billing on an Android app (java). When I call launchBillingFlow on the BillingClient: BillingFlowParams billingFlowParams = Billing
package Multiplemethods; import java.util.stream.DoubleStream; public class TimeOffice { public static void main(String args[]){ //instance variables dou
I have created a standard Google Maps Activity in my app in Android Studio and the map works as expected. My Activity is called 'NativeMap' and then the activit
On Android API 28, I'm trying to get the album art for a particular album using the albumID. The code throws the following error on getBitmap android.database.s
I need to mock some class that contains @PostConstruct method, but I get NullPointerException inside @PostConstruct method. My code looks like the following: @S
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause
Our recent move to a jenkins in a docker-image has not been so smooth. We have a (over?)complicated setup where one docker container starts a new one and, previ
Here is my code if (!multipartFile.isEmpty() && multipartFile.getOriginalFilename() != null && !multipartFile.getOriginalFilename().isBlank()) {
I am wondering if using loadjava to load the Java package called JSch.jar in an Oracle database and then loading another .java file, that utilizes the JSch pack
I want to create a two-dimensional array, each element of which is a list, as in the image. I tried ArrayList<List<User>>[][] arrayList = new ArrayL
public LocatedCarParksMap locateAndClickOnTheCardByAddressIndicator(String location) { List<WebElement> quoteCards = driver.findElements(By.cs