Questions tagged [java]

Java is a high-level object oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.

0 votes
0 answers
11 views

How to access "types" dynamically with java?

I don't know what types.DocumentType is, but I'm doing an integration of an sdk and I created a cordova plugin. the import from the sdk is like this: import exemple.types.DocumentType; example.open(...
user avatar
-1 votes
0 answers
8 views

I connected my app to firebase. Then I tried to pull video url from firebase with exoplayer. However, the code gave an error

public class PlayerActivity extends AppCompatActivity { // Privateler bu Şekilde private StyledPlayerView playerView; private ExoPlayer player; private String VIDEO_TITLE; private String VIDEO_URL; ...
user avatar
0 votes
1 answer
27 views

How to equal string in if condition in JAVA?

I used .equals() but does not work or the mistake is in different line or function. My purpose is creating a hashmap and 20 different years and months. Sample output will be like {“Jun-20”=6, “Aug-20”=...
user avatar
0 votes
0 answers
5 views

adding json on a column in enitity class using spring boot

I was using JPA AttributeConverter with spring boot 1.2.1 RELEASE and it worked fine. But I get the following error after upgrading to spring boot 1.3.0.RELEASE attributeLabelMap.java I want to add ...
user avatar
0 votes
0 answers
13 views

Why doesn't the replace function for fragments work?

I'm trying to open a Fragment from a Activity by using the fragmentManager.replace() function, but it doesn't do anything and the Logcat tells me nothing either. I have tried using both ...
user avatar
0 votes
0 answers
12 views

How to know more about deep linking of android apps with redirect urls?

I'm working on a project which requires deep linking. I want to know what are the things I can use with the Deep linking URLs. For e.g. Suppose my URL to open instagram profile is instagram://user?...
user avatar
0 votes
1 answer
30 views

Is it possible to create custom java comparator which will compare by two different object properties?

Could you please help me to figure out how to implement comparator which will have the following algorithm? Let's imagine we have class Order which have properties CollectionDT and OrderingDT. What it'...
user avatar
0 votes
0 answers
10 views

How to make jboss send client certificate in specific request?

I have 2 client certificates within a keystore running in JBoss EAP 7.4. I want them to be sent to differente web services. How to associate a specific certificate with a specific URL/server?
user avatar
0 votes
0 answers
16 views

How to update Parent RecyclerView's components from child RecyclerView's components in android Studio using java?

As you can see in the picture I have two recycler Views (Parent and nested Recycler View), the parent recycler View is showing Semesters' list while the nested recycler View is showing subjects' list ...
user avatar
-2 votes
0 answers
14 views

how can i import feature app to another whit android studio?

DOOO application has the feature to complete watching for example the user can continue watching the movie at a later time and from the minute he left the movie ,, I have a second application and I ...
user avatar
  • 1
0 votes
0 answers
7 views

Facing Caused by: org.apache.kafka.clients.consumer.CommitFailedException:

Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the ...
user avatar
  • 1,895
0 votes
0 answers
11 views

Jacoco 0.8.2>= + Java 11 + Spring 5 not working

I'm getting the following error when attempting to "Run Coverage" as junit test: All I can really find is that Java 11 support began at version 0.8.2 for jacoco, which I've updated but I ...
user avatar
  • 442
0 votes
0 answers
12 views

Circular dependencies solutions?

I recently upgraded to the latest Spring, and I'm now getting circular dependencies issues (I know the default is now no longer true to allow for circular dependencies) but even setting it to true ...
user avatar
  • 1
-1 votes
1 answer
40 views

How can i reduce number of ifs in Java? Following Clean Code [duplicate]

public void identifyFile(List<MultipartFile> files) { for (MultipartFile file : files) { if (Objects.equals(file.getOriginalFilename(), "file1.csv")) { } ...
user avatar
0 votes
0 answers
10 views

Failed to package a jar with dependencies with mvn

I am using mvn to build a simple Java code, I expect mvn could package a signle jar including all dependencies. When I ran command "mvn clean package", it always generate a jar "myapp-1....
user avatar
  • 473

15 30 50 per page
1
2 3 4 5
124111