Category "java"

Paths.get vs Path.of

As far as I can tell, Paths.get and Path.of seem to do exactly the same thing, turning one or more strings into a Path object; the documentations for Paths.get

Sample result's label is not changed through BeanShell post processor for some conditions

I made this code so that if status == 500 the name of the api would be equal to "FAKE_CLIENT_RETRY", if the status of the api == "ERROR", the name would be equa

Build android.Why say "Missing nullability on parameter..."

I want to add my animation in android. First I copy TranslateAnimation.java to MyAnimation.java, and change class name. But Android build failed. error message:

Android - listFiles() doesn't list some files

I'd like to make an Android app to list files and their size, a bit like WinDirStat or TreeSize on Windows, or DiskUsage on Android. I tried this to get a list

Invoke method using spring SPEL with property

Is it possible to use a property value to invoke a method while assigning a value? For instance, I know I can do this: @Value("${name}") private String name; //

How to do rescheduling in springboot

I have a spring boot application which contains a scheduler that picks up file from my local.I want the scheduler to be rescheduled to an hour after if my local

Selenium test Java maven dependencies

I created tests on selenium ide. I want to run java files on intellij idea. I prepared pom.xml like that but I have problem with running tests. dependencies>

CoderByte says all of my testcases are wrong?

I tried coderbyte and looks something is wrong with it. The first challenge is simply to reverse a string. I did this in java: import java.util.*; import java

How to write a regex capture group which matches a character 3 or 4 times before a delimiter?

I'm trying to write a regex that splits elements out according to a delimiter. The regex also needs to ensure there are ideally 4, but at least 3 colons : in e

java -version does not change

I am having trouble changing the version of java running on my Mac running Big Sur 11.2 with zsh. I want to set Java 1.8 as my default, so I used the following

Maven- Getting dependencies from pom file

I need to get all the dependencies of a project, so to my knowledge, everything under <dependencies> ... <dependencies> and <exclusions> ... &

How to check if String should be escaped in Java

I want to check if a specific String should be escaped before really performing any escaping mechanism. for example: if the String is "msg\t" so I want to escap

Nesting one-to-one relationship in already owned entity

I'm working on a project with multiple user data mapped to a user by one-to-one relationships in the entities. I'm in the process of adding another entity which

Java streams collect excel CSV to a list filtering based on the sum of a column

Suppose we have an excel spreadsheet that looks like: StatusCount FirstName LastName ID 1 Tod Mahones 122145 0 Tod Maho

Add another annotation when an annotation is present with Java 8

I am currently creating my own CRUD-managing class. For this purpose I work with an annotation that looks like this: import java.lang.annotation.ElementType; im

No qualifying bean of type 'javax.sql.DataSource' available

I am using spring mvc version 5. I am struggling in an autowire problem. I am following a spring security JDBC tutorial. Here is the AppConfiguration.class:

No qualifying bean of type 'javax.sql.DataSource' available

I am using spring mvc version 5. I am struggling in an autowire problem. I am following a spring security JDBC tutorial. Here is the AppConfiguration.class:

I can't run my deployed Tensorflow Lite Model in Android Studio due to customized model?

I was deploying my Tensorflow Lite model into my Android Studio. The application does run but when after I took a picture and tried to predict the result, the a

What is use of the annotation @JsonIgnore?

I'm joining tables with one to many cardinality, the classes I'm using refer to each other. And I'm using @JsonIgnore annotation with out understanding it deepl

Cast server screen to client using java

I want code for server and client. Whatever is displayed in server screen should be displaying the same in client screen in jframe using java networking. I ha