Category "java"

Android Studio strings.xml: 'NBSP' suddenly appeared in my strings.xml files

I suddenly have the mention 'NBSP' in my strings.xml files, just before special characters (!, ?, ....) These 'NBSP' do not appear in my app when I run it. Als

react-native-notifications Notification opened when app is opened from app tray (Android only)

I am using react-native-notifications version 4.2.4 on React Native 0.64.1. I have also tried on react-native-notifications version 4.3.1 on React Native 0.67.

Trying to compare todays date to given date from HTML

I'm trying to compare dates as i take input from user using date in html and send it to servlet to validate it or know if it's today's date this is my trial and

Why the app doesn't change to the language I already saved after close

I have some issues with changing the language in the app. I do not know why it is not working, there is no error, checked the log all clear. I used the followin

Java log parsing with logstash grok

This is my sample java log I tried to parse using Logstash [#|2022-04-06T07:02:47.885+0800|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=24

Azure cosmos Db Criteria query with subdocuments - java spring boot

I'm new to azure cosmos db. i'm trying to read items from container in my spring boot application. i'm using cosmos template with criteria. lets say i have a do

Spring Boot/Spring Batch: Using and configuring two DataSource via app properties

I'm working with Spring Boot/Spring Batch, and need to provide two jdbc Data Sources. I can't find a way to automatically load the config parameters from my app

How can i calculate working days off in java

Im trying to calculate the working days off with some required like: In a month will work on 2 Saturdays . If this week work on Saturdays . The next week won't

Error while parsing, when loading the data from snowflake having array datatype

I am trying to read data from snowflake and load it to other storage location. I am using snowflake jdbc driver 3.12.9 to read the data and jackson library(2.10

Reuse a method with nested for-loops that only differs by some lines inside the inner loop

I have a java method that basically looks like this: public static Map<String, List<MyObject>> myMappingMethod(List<A> listOfA, List<B>

ArrayList<Integer> will only keep one set of parameters. the rest is not being updated

I'm confused as to why the variable answer will only output one set of answer. I have a recur function that basically counts from i to size. it will then return

How to reduce the JPackage size?

I am using JPackage to create installer to my javafx application. I am using lot of lib in my project. If I create JPackage the size of installer is 100 MB. How

How to use LocationRequest? Because direct constructor is not working nor .create()

I am trying to get current location in a map fragment but unable to do so because LocationRequest.create() is not wokring. Neither works: LocationRequest l = ne

How use File("/sdcard/myfile") without READ_EXTERNAL_STORAGE on android 11?

After my Application have been refused by the play Store I have to remove MANAGE_EXTERNAL_STORAGE to the manifest. This authorisation is only for app like antiv

How do I use jdk.net.hosts.file and fallback to default NS resolution?

After I added -Djdk.net.hosts.file property my app cannot resolve the name of my local machine. Is there a way to make it fallback to default resolution when no

Neighbours does not yield true

I am writing a small program of how to calculate sum of neighbours of a given position in a grid. for some reason the program does not recognize the right value

how to replace all in a given string except the last 4 digits like **** **** **** 4587 [duplicate]

"\\d(?=\\d{4})","*" I've tried it like that but it does not seem to be working it gives me the exact same string i entered to the scanner

intellij mass refactoring using macros

I am working on a project in intellij using java and spring. I want to change in multiple files my api's in a similar way like this: instead of: public void som

No variants of io.grpc:protoc-gen-grpc-java:1.33.1 match the consumer attributes

Issue: I'm using Dexguard to obfuscate codes for release build. Previously, I could build as normal without errors. However, when I add this dependency com.gith

Hibernate Jpa: update on @Embeddable table generates a query using the wrong table which @Embedded

I have the database tables Person and Details. Details are intended to carry the miscellaneous fields for the Person using the foreign key PERSON_ID. JPA code h