Skip to main content

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.

java
-1 votes
0 answers
10 views

Jackson INDENT_OUTPUT doesn't format properly - what am I doing wrong?

I've been trying to figure this out for a bit but couldn't pin-point my mistake. I have a JSON I'd like to read into Java objects, manipulate those objects, then write them to a new JSON. Code looks ...
anon's user avatar
  • 31
-1 votes
0 answers
19 views

Is it thread-safe by default to have nested CopyOnWriteArrayList?

Lets imagine I have the following code: class ClassA { final Integer i; final String; final CopyOnWriteArrayList<ClassB> l; ClassA() { ... } } class ClassB { final Integer i; final String;...
Elektor's user avatar
  • 81
0 votes
0 answers
6 views

Android How to add pagination into AutoCompleteTextView

can you please help for how to handle pagination into AutoCompleteTextView, i have show data as dropdown list using custom adapter like this. SearchDropdownAdapter searchDropdownAdapter = new ...
Adil Saiyad's user avatar
  • 1,592
1 vote
1 answer
34 views

I want to know the space complexity of this function

I was writing this code, and I am confused about whether the space complexity of this question is O(N) or O(N^2). This is the function whose complexity i want to know: static pair[] allPairs(int x, ...
R Hermit's user avatar
1 vote
1 answer
16 views

How to Detect Unsecured Wifi Android

WifiInfo class provides getCurrentSecurityType function but it is available only for API level 31 & above. private static void detectUnsecureWifiNetwork(Context context) { WifiManager ...
Ghost's user avatar
  • 55
0 votes
0 answers
13 views

IntelliJ's GridLayoutManager doesn't shrink its children

Here's a simple demo. The main class displays a frame with a GridLayoutManager-managed panel. The panel contains a stack of JLabels with long text strings I expect the labels to shrink as I shrink the ...
demavi's user avatar
  • 185
-4 votes
0 answers
20 views

How to get data on the list of companies and their holdings in each mutual fund in India?Are there any APIs available which can give this information? [closed]

I want data for mutual funds in India, with companies and their holdings. Below is the screenshot taken from Groww app for mutual fund named "Axis small cap fund direct growth". The last ...
Pranav Chiddarwar's user avatar
0 votes
0 answers
6 views

How to run Sencha Cmd 7.8.0.59 on linux

After upgrading the java to version 17, I have to install the sencha 7.8 version. But in compare with other versions there is no way to choose Sencha CMD with jre included or not. So the versions ...
Vahe Akhsakhalyan's user avatar
0 votes
0 answers
12 views

Polling data from kafka topic giving exception

I am trying to poll data from a kafka topic- "topic-a". I am trying ot poll that using kafka consumer listener. I have provided the below details in the application.yaml file for kafka ...
Vatsav Kolluru's user avatar
-1 votes
0 answers
17 views

Array Index Out Of Bound Error for Finding an element in an infinite array by Kunal Kushwaha video

My Code public class InfiniteElement{ public static void main(String[] args) { int[] arr = {1, 2, 4, 6, 8, 9, 10 , 13, 16, 19, 20 ,23, 27, 40, 42, 44}; int target = 44; ...
UDAYA KRISHNAN.M's user avatar
0 votes
0 answers
16 views

Multi module Spring boot microservices project in Eclipse/STS

I am creating spring boot microservice project in STS using maven multi module. Created parent project with packaging type as pom. Created microservice1 as jar packaging type which is using the DTO ...
ajeet singh's user avatar
0 votes
0 answers
25 views

DynamoDB : No Repository Bean found, with Spring boot 3, Java 21

I am trying to integrate with DynamoDB using Spring boot 3.x. I am using Java 21 and have following configuration in gradle for DynamoDb: dependencies { implementation 'org.springframework.boot:spring-...
Nitish Bhardwaj's user avatar
0 votes
0 answers
16 views

Representing an 8-digit hexadecimal as a long [duplicate]

I am writing a Java program that performs bitwise operations on bites in a data stream. I have been given test values in the form of 8-digit hexadecimal strings, which I have converted to base 10 and ...
T. J. Foster's user avatar
0 votes
1 answer
26 views

ORA-02020: too many database links in use

I have been working on a oracle database query that uses more than 4 database links and I keep getting this error ORA-02020: too many database links in use. I cannot change the limit and tried using ...
Suhaani Batra's user avatar
3 votes
2 answers
46 views

How to use the Instant Class in Java to get Elapsed Time in Seconds to a Certain Number of Decimal Points?

Is there any way to use the Instant class in Java to get elapsed time in seconds to a certain number of decimal points? I took some time to experiment, and I was able to to use the .now() method at ...
ChicoTabi's user avatar

15 30 50 per page
1
2 3 4 5
43