I understand it's because the program thinks I'm dividing by O, but I'm not sure how to fix it in the program. The program works fine, though. It outputs the av
I have a problem while hitting the back button on an activity, in particular, the back button on the activity closes the application and destroys all the activi
The following screenshot is from official Android documentation of android.app.Application#onCreate() which says If you override this method,
In the code shown below, p is a predicate of type Predicate<String>. Map<Boolean, List<String>> partitioned = numbers.stream() .collect(Co
I am creating a method that takes a percent as a parameter and decreases the price by that percent. public void lowerPriceBy(double percent){ price = price/
I noticed that finding all versions of a specific file in git takes a long time when the number of files in the repo is more then a couple of thousand. Any idea
I'm new to java programming. I'm trying to make a banking system log-in that locks the user after entering the wrong pin 3 times. I'm trying to merge 2 pieces o
Does the Apache Commons Configuration library support reading properties/configuration files from the classpath or JAR? I didn't find an API where it can take a
I would like to draw multiple objects like ovals, rectangles and lines together. But somehow I can draw only an object. When I try to draw ano
I have this input: Masa: <input type="number" class="form-control form-text" name="masa"/> <div class="text col-sm-12 error" th:if="${wzrost}"
I am trying to pass a Javascript code to Java, but I've got a problem with the for loop, I have a for with 2 iterators in my Javascript code, and it is working
I'm trying to compare the cost of a user's phone usage under plans from three different providers. I can get as far as entering the usage details but once enter
I have been trying to change configuration for an existing Windows Service via the JNA API, specifically via com.sun.jna.platform.win32.Advapi32 class but could
I've a reactive API which receives the following String (image below). I want to process these ID's and perform a search query to my MongoDB and return a Flux w
Any Lead for consuming Microsoft dyanmics NAV web service.Client has given us a WSDL file in XML format and we need to consume it in java/spring boot.
I'm trying to build a custom launcher for Android, and I'm following this guide to have a clue of what I'm doing. Till the first part everything's ok, it works
I am deploying a Spring-boot web-application on 'tomcat 9' and I faced a NoSuchMethodException. I compile and run this code in localhost, successfully; but when
I get the following error: I have this code I have tried several things going before I posted this, I determined that this was the source error it did not conne
I am new to Android and I have been trying to show a Heads up action push notification just like whatsapp does. This is my configuration for my notification:
I am new to Android and I have been trying to show a Heads up action push notification just like whatsapp does. This is my configuration for my notification: