Category "java"

ChromeDevTools in selenium, waiting for response bodies

I need to work on ajax response, that is one of responses received upon visiting a page. I use selenium dev tools and java. I create a listener, that intercepts

How to scan a table in DynamoDB with time period?

I have a table in DynamoDB and it has an attribute 'createDate' and I want to do a scan using a filter in a specific period of that attribute (for example: 2022

I was trying to solve "Grid unique path" using Dynamic programming in Java

I am trying to implement a solution for grid unique path using D.P. approach while trying to do so, I don't know why in the middle of execution the value at (0,

Osmdroid loading only Elements inside of a Polygon with OverpassAPIProvider

So I am trying the following: Using the Overpass API in osmdroid to only load those nodes, ways or relations that are within or partially within a Polygon. Twea

How can I sum and average my array in Java

I want to sum and average my array in Java. How can I do that? public class EjerciciosArrays extends javax.swing.JFrame { ArrayList<Double> mi_ar

getResourceAsStream returns null

I'm loading a text file from within a package in a compiled JAR of my Java project. The relevant directory structure is as follows: /src/initialization/Lifepat

Apache POI: default Excel cell styles

Is there are a way to use default Excel cell styles (see below) in Apache POI, similar to default data formats in BuiltinFormats?

Mockito verify still fails on using all Matchers

I am recently writing a JUnit test and I acknowledged that Mockito either needs all Raw values or using all Matchers but I find the following case still fails w

update one or more fields inside of a document, without updating all the fields

I have a feature in my program where I have to enter the user's details such as the user's age, height, and weight. This data will be stored in Firestore. this

?Invalid char constant compile error ?cannot able to declare in java

I am trying declare char constant in java it throwing invalid constant error. public static final char code = 'RETURN';

Getting "Cannot use dynamic template data with a legacy template" with non-legacy template

I'm attempting to integrate with Sendgrid and am having a heck of a time. I have created a dynamic template - a new one, not a legacy one - with a single handl

why sites are not displayed correctly on heroku

I'm new to Java development. I made an application that checks the functionality of sites. When you start the Spring application, all sites work and display cor

SOAP Faults <detail> in http response not visible

I have one issue. I've generated a WS server from a wsdl and i'm am trying to understand the exceptions handiling. Basically in the WSDL is defined a custom exc

How do I implement the looping functionality in my BrainFuck Interpreter?

There's multiple questions here already, but I'll still proceed. This is a simple BrainFuck interpreter. I figured out all the other symbols, but I can't figure

Return number of nodes equal to degree k

Below is the function we'd be required to fill public Integer numVerticesGtrDegreeK(Integer v, Integer k); // PRE: Graph is connected, v is the id of a ver

Create custom formatter for logging in Quarkus

I have a problem with logs displayed in Splunk. Every exception element stack trace being splitted into separated log. Unfortunately I don't have access to Splu

Problem : java.lang.NullPointerException: Argument must not be null

I have a problem in this line : public class ShowAllAdapter extends RecyclerView.Adapter<ShowAllAdapter.ViewHolder> { and in this line : Glide.with(conte

How do we open google map from a button inside onBindViewHolder? [duplicate]

I would like to open google map on button click. The code below works but when I went back to the app, it throws FATAL EXCEPTION. The button i

Java OOMs on ignite server nodes although onheap enabled

In our project we are currently (still) using Apache Ignite 2.81. We are currently facing OOMs on server nodes when multiple clients are simultaneously fetching

How to use WS-Addressing and get messageId

I'm stuck on WS-Addressing with Apache CXF. I tried everything I found on the Web but without good results. There are two applications, a server and a client, t