I've created a simple JTextField (this will have a mask after and I'll use this in multiple projects) and I'm trying to add in a simple JFrame, however, when I
At first, I write the following code, but it can't build. Arrays.sort(n, (o1 ,o2) -> o1 % 2 == 0 ? 1 : -1); enter image description here And then , I write a
How can I make this code a recursive method? for (int i = 3; i < arr.length; i++) { writer.write(arr[i] + "\n"); strout += arr[i] + "\n"; }
I have a few recyclerview in different activities and all of their items specified by sharedpreferences but after removing an item from sharedpreferences the re
Background: I am creating a login browser page before my main UI(myGUI) page is displayed. I am using a HashMap to store the correct username and password combi
I'm using HTTPS to connect to web services. The problem is that I need to connect to 2 web services and then they have different certificates. In this class the
I'm using PaymentIntent to make a payment. I specify the customer that has all the billing info, but the payment is specified as "Incomplete", I checked this ST
pls help me with below code snippet understanding /*package whatever //do not write package name here */ import java.io.*; import java.util.BitSet; class GFG {
I have upgraded my Android Studio and after that I'm facing this error: Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: fals
Describing of context: java app (running under wildfly) works under high workload and heap is almost filled. Because of that full GC runs often and this leads t
I'm making a request to my server, but the response is given in String, and I need to get data from there, for example, the if response: {"response":{"balance":
I am working on Aadhaar Paperless Offline e-kyc, trying to validate aadhaar XML signature using public key certificate. But I'm not sure is this the right way t
First I want to say that am totally new to Beam world. I'm working on an Apache Beam focused task and my main data source is a Kinesis stream. In there, when I
so I've been developing some machine learning models using sklearn and tensorflow in python . and I want to integrate it into a java web app. so far I've been s
@JsonInclude(JsonInclude.Include.NON_DEFAULT) I have a nested class structure as follows: public class A{ String z; String y; float p; List<B>
Trying to test my web tier (spring boot, spring mvc) with junit5 and mockito. All other tests on http methods (get, put, ...) are working fine but the update. F
I want to make a Mac Application using Java code I wrote, and I want to make it that the person using it doesn't require Java to be installed on their own compu
Getting char cannot be dereferenced error , while writing following code for(int i =1;i<=m;i++){ for(int j =1;j<=l;j++){ if(A.charAt(i-1).equa
I am having trouble getting an H2 In Memory database to populate. The idea here to have the BuildingCode which is unique as a primary key and id. I get the foll
I am trying to change the place of characters in a string. The first and last have to stay like they are. For example: String str = "String te