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 vote
1 answer
25 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
12 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
10 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
-3 votes
0 answers
15 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
4 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
15 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
15 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
23 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
14 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
0 answers
19 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
1 answer
39 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
0 votes
0 answers
11 views

Schema transformation per-request on Spring GraphQL

We are migrating from using the spring graphql kickstarter to the official Spring for GraphQL solution. Something the kickstarter had was a Servlet that could be overridden to get the schema per ...
Justin Sumida's user avatar
-1 votes
0 answers
11 views

Dependencies Android Studio

enter image description here Hello, I am new to the Android studio area and I need to import some liveries in the dependency part, but the method that I have learned gives me an error, and it always ...
Jose Rodríguez's user avatar
0 votes
1 answer
37 views

How can I enforce naming conventions on spring rest controllers?

For our REST API we have standardized on using hyphen case, i.e. GET /store-users?first-name=dan and not GET /storeUsers?firstName=dan How can we enforce this naming convention as developers keep ...
dan carter's user avatar
  • 4,282

15 30 50 per page
1
2 3 4 5
9