Questions tagged [java]
Java is a popular high-level programming language. Use this tag when you're having problems using or understanding the language itself. This tag is rarely used alone and is most often used in conjunction with [spring], [spring-boot], [jakarta-ee], [android], [javafx], [hadoop], [gradle] and [maven].
1,741,493
questions
0
votes
0answers
3 views
Unable to connect and get postgres data from cron scheduler job
I am looking for automatic postgres database connection when job is triggered. I am unable to connect to postgres database and get the booklist.
I tried to call a postgres database table called ...
0
votes
0answers
9 views
Break it down like Barney. What does : and ? mean [duplicate]
I am a noob in Java; I need someone to explain the code below. Nothing is broken I just can't get a clear understanding. Specifically, the question mark (?) and the colon (:). What do they mean, and ...
0
votes
0answers
6 views
“org.springframework.cloud.gateway.support.DefaultServerRequest” is deprecated, any alternative?
I am using sonar detection code, it point ""org.springframework.cloud.gateway.support.DefaultServerRequest" is deprecated, Does anyone know what can be replaced.
0
votes
0answers
7 views
Filtering data in a table - how to organize it correctly
I study the spring+Hibernate bundle there Is an entity:
public class PersonEntity {
private Long id;
private String name;
private Integer age;
private City city;
private ...
-1
votes
0answers
11 views
how to call setters and getters in java from one class to another into a main method
How do I call a setter/getter into my main method from another class?
Get it from this -
enter image description here
to this -
enter image description here
0
votes
1answer
17 views
Why can't I modify a variable in Java?
I don't know why can't I modify a variable in Java, take my code
This is my code:
public class Main{
public static void main(String[] args){
int number = 1;
change(number);
...
0
votes
0answers
10 views
Problems with UTF-8 encoding - web-project
I'm aware that this question was already asked a couple of times, but I didn't get the problem solved even with the hints mentioned in other posts.
For a small webproject I created some html/jsp pages ...
1
vote
0answers
11 views
How to call main class in Netbeans Java
Sir, this is my first post in this forum.
I am using Netbeans 12 and trying to create java maven project.
I have this main class
package com.mycompany.crud;
import java.sql.*;
import javax.swing.*;
...
0
votes
0answers
6 views
Can't use JFoenix on JavaFX maven using Apache NetBeans
I install the dependency, I build it, clean build it and build with dependencies yet I got this error, and I don't know what cause the error. I am new to javaFX maven and I want to expand my knowledge ...
0
votes
0answers
14 views
Which route should I take as beginner to Java
I have done some basic HTML, basic CSS, and I have done python. I'm not sure on what steps should I should take as a beginner to Java.
0
votes
0answers
7 views
How to use Listview inside child layout of Expandablelistview in Android Studio
I want to take Listview inside child layout of ExpandableListview, the child layout will fetch data from a JSON File. I am providing my necessary code for checking you. Can you please help me how I ...
0
votes
0answers
10 views
Can we use AIDL file in flutter?
I have used Android Interface Definition Language (AIDL) file in native android , now i have to use it in flutter. is it possible to use AIDL file in flutter.
If yes how?
i could not find any examples ...
0
votes
0answers
20 views
Java DB Connection using JDBC
I have a question regarding database connection
I am using the Apache Derby database
When I trying to connect to my database using DriverManager I am having an error
private final String DATABASE_URL ...
-1
votes
0answers
16 views
How does ConcurrentHashMap work in Java regarding many different users from across the world?
I am still learning about how concurrency works in large scale applications and I was hoping someone could clear up some questions I had:
If I put a ConcurrentHashMap in a java class that is hit ...
0
votes
0answers
12 views
Parsing HTML date input into Timestamp in Java Servlet
Recently I'm having a problem with Timestamp and HTML input type Date:
This is my HTML/JSP:
<div class="form-group">
<label>Your day of birth</label>
<input class=&...