Category "java"

Could not resolve com.google.android.gms:play-services-location:16.+

guys, when I tried to run my application on real device but I found that error after upgrading to 1.22.2: Required by: project :app > project :locatio

2D Graphics and image won't show correctly

First of all, I have two class' GameGUI and paintCircle In paintCircle I'm drawing my circle on top of my JPanel image from GameGUI, but with the standard grey-

Subtracting two arrays (variables with decimals) [closed]

How to subtract the below two arrays in java? (09.34, 09.56, 09.00, 08.55 ) (17.25, 18.06, 17.55, 16.00)

SWRL Rules in Protege 5.5.0

I have 2 Classes(Agent and Penalty). Also, I have hasPoint(Penalty) and hasWeight(Agent) data properties. When I write this SWRL Rule, I got an error: Agent(?a)

Why can I not access class variables from onComplete in Flow API Subscriber

Using the Java Flow API. I have a chain of Processors and a terminal Subscriber. I have coded up Subscribers that have kept a count of items received that work

Inside spring-boot--application.yml- what can be the replacement for colon?

application.yml Pensions : Workplace-DPO: [email protected] I want Pensions : Workplace-DPO to be as key , but its treating DC Pensions to be as key . Quot

Grouping duplicates in CSV file and ranking data based on certain values

I have a CSV file like so - "user_id","age","liked_ad","location" 2145,34,true,USA 6786,25,true,UK 9025,21,false,USA 1145,40,false,UK The csv file goes on. I

Shutdown IdleConnectionReaper in AWS Java SDK v2

I'm using S3Client from Java SDK v2. to upload/download files from AWS S3 in a distributed web application. I had a problem with idle-connection-reaper daemon t

Spring cloud config server ssh to bitbucket problem

I'm trying to get the spring cloud config server connected to a bitbucket repo using ssh. I've found lots of posts about the key needing to be rsa format. I'v

Java: style compability tradeoff [closed]

I was wondering the other day about the compatibility and style of my Java code. As of Java 14, the enhanced switch has really become availabl

How to generate Random Number-String(Alpha-Numeric) from String with given Key

So far i need to generate 6 length random key from given string I assume given string is always unique. With that i cant to plain so i need to encrypt into some

How to capture the field values in the csv file using bufferedreader

The csv file looks like this I'm trying to get the field values like name, it is the value after $$NAME$$ (there is a space after the identifier). How do I st

Forwarding message to Message Channel manually - Spring Integration

Am able to send the message successfully using the below from my FirstHandler messageChannel.send(MessageBuilder.withPayload(pa).build()); But, the flow is wait

Running Cucumber in Springboot with Maven in executable JAR

Hello fellow engineers! I have run into a problem when trying to create a FAT jar to execute the Cucumber tests. Initially, I have followed the guide to set up

SAX Feature Not Supported in Spring Boot 2.6.1

Spring boot 2.6.1 supports logback 1.2.7 I've added the following dependencies in project <dependency> <groupId>ch.qos.logback&l

Array Java Quotient

So I need help I'm trying to calculate the quotient of all the elements inside an array. I only have 2 pairs of code but I don't know if they will work. public

How to mock the forEach elements which is iterate over the minioclient collection?

I am using minioClient.listObjects to fetch all the objects from s3. It returns the iterable Result<Item>. Here I was iterating over these results. public

How to quickly convert java / json to Xtext langauge?

I am working on an app that processes incoming Json's and I want to easily extract the json data and convert it to a DSL language I'v created using Xtext. My go

java.lang.NullPointerException: Cannot invoke "java.lang.reflect.AccessibleObject.setAccessible(boolean)" because "ao" is null

I am doing Dynamic Web Project using JPA in Java 17. I have a class called UserEntity. In the first page I have a register button, which has the following funct

Entering an only alphanumeric string runs into a java.lang.IndexOutOfBoundsException but works like intended otherwise

I get an error when I try to type a password consisting only alphanumeric characters but loops the way I intended if I type symbols. This is my first time tryin