Category "java"

sum up an array in the special style of reduction | (i * 2)

I am currently sitting on a java problem I've found online. We have an array which has several thousand, if not millions, of entries. the goal is to efficiently

this application requires the latest version of arcore but installed

I'm using AR for my app. when I want to use AR I got this message: this application requires the latest version of arcore but installed but it installed: de

Compiling error while compiling two java files in the same package that use each other

Suppose we have two .java files in the same directory. Test.java: public class Test { public void func() { System.out.println("Hello World"); }

Display Jackson ObjectMapper configuration

Before I invest energy building a utility to interrogate an ObjectMapper to output its configuration via methods like: objectMapper.getRegisteredModuleIds(); ob

bindBindingsValuesProvidersByContext not found for reference aem unit test

Getting below error when I run a unit test class individually in intellij , if I do mvn clean install -PautoInstallPackage test class passing. java.lang.Runti

LeetCode 7: Reverse Integer | why does it work with a long but not with an int?

I was trying to solve this problem on LeetCode where you have to reverse an integer using a function. The constraint is that if the reversed number goes outside

How to Retrieve OAuth2AuthorizedClient in a request when using WebFlux

I have a back-end(Springboot) application that is connected to Azure AD and a front-end application that accesses it. In the front-end, I am requiring the user

error: incompatible types: ImageActivity cannot be converted to Context

I'm getting this incompatible type error for my code. The error shows in ImageActivity class. The error is in line: imageAdapter = new ImageAdapter(ImageActivit

@Autowire returns null after adding Spring AOP in an abstract base class

I'm using POM in my selenium automation project, so there is an abstract class BasePage extended by a DerivedPage which is used for test method The method which

Property with return value in Java/Kotlin?

This is a pretty basic question, but I haven't been able to find any answer on SO yet. I'm just curious, is there a corresponding way in Java or Kotlin to write

EXCEPTION_ACCESS_VIOLATION Error when using stbi_load

I'm trying to load an image into a ByteBuffer using stbi_load. However, the following error gets thrown up in the console fatal error has been detected by the

Why is Spring @Transactional unreliable with AspectJ?

TLDR: this project reproduces the issue: https://github.com/moreginger/aspectj-no-tx Edit: Above now reproduced without jooq i.e. using plain JDBC. Edit: Spring

Java 17 JDK Install exe won't run

I am trying to download Java 17, but whenever I run the jdk-java17.exe file, nothing happens, this occurs when run as administrator as well. When I debug the ex

Cannot resolve symbol 'CachingSpringLoadBalancerFactory'

I have this code that I would like to migrate to the latest version of 'org.springframework.cloud:spring-cloud-openfeign-core:3.1.1' import feign.Client; import

Convert .apk file to .abb file without Android studio

Please how can I convert .apk to .aab without Android studio I created an Android app using AIDE and I wanted to upload to Google Play Store and then I discover

How to solve Chinese garbled when using javax.servlet.Filter

ContentCachingResponseWrapper wrapper = new ContentCachingResponseWrapper(response); wrapper.setContentType("application/json;charset=UTF-8"); wrapper.setCharac

Check which jar is being used by classes for compilation & execution(runtime)

I've a very big project where thousands of classes are using 100s of third party jars. I need to find out list of jars used by every single class in the project

How to use PDFTemplate of OpenPDF in PDFTable

I want to create a Header of a page which contains a table wit current and total number of pages. As far as I understand OpenPDF, I have to use the PageEventHel

Sobel edge implementation issue

For a class I have to implement the sobel edge detector in java, and do I did. But something isnt right, and after 3 hours trying to figure it out I still haven

Which version of Java do I need for this

I'm trying to use R and the R package rjdbc to connect to an Oracle database. Unfortunately, due to my company's strict IT department, every step of the proces