1,916,705 questions
Best practices
0
votes
4
replies
56
views
Cron Expression to choose any one day
Is there a Cron expression to run on either 2 or 3 days of the month, e.g.
run once on either 11th, 12th or 13th
3
votes
3
answers
75
views
Reference Types: Variable Not Initialized Error Confusion
My instructor gave us this question for homework:
11. Select the TRUE statement.
a) This code will not compile.The error will be:
local variable c may not have been initialized
b) ...
Best practices
0
votes
2
replies
73
views
Notifying programmer to use another function: Alternatives to @Deprecated?
Suppose I have these classes:
class Tool {
String method1() {
return "ok";
}
}
class RareSpecialTool extends Tool {
/**
* @...
Advice
0
votes
1
replies
50
views
Telegram Group Chat Creation Automated
I am using a Telegram bot in a Spring Boot application and I want to automate messaging for my system users.
Is it possible to:
Automatically create a group chat for each user using a Telegram bot
...
0
votes
1
answer
74
views
Spring boot application moving from JAVA 17 to JAVA 25 gives Exception java.lang.NoClassDefFoundError: sun/security/action/GetPropertyAction
I had a Java application in JDK17 which uses the IIOP corba protocol for JMS message connection listener and processing those further.
Now upgrade the JDK17 to JDK25 , with that i am getting below ...
0
votes
0
answers
43
views
Visual Studio Code unable to create java gradle projects
I'm trying to fix this problem from some days now, I have 'gradle for java' and 'extension pack for java' extensions installed, but when I try to create a new gradle java project, it tryies to create ...
-3
votes
1
answer
53
views
Odd type casting error with com.fasterxml.jackson(.databind) v3 when deserializing a class deriving from `java.util.Properties` [duplicate]
I am having an issue while trying to upgrade my application from using Jackson v2 to Jackson v3:
My application has a class that contains a reference to an object of type NodeProperties, a class which ...
-3
votes
0
answers
64
views
Mysterious AccessibleJTable registered as TableModelListener
I have a JTable in a JFrame that uses an AbstractTableModel extension, all built with NetBeans 28. When the table loads I find through debug that the model has one listener. Later when I try to delete ...
0
votes
1
answer
50
views
How to get concrete Controller type using Guava
I am using Google Guava to switch the content pane in my JavaFX app.
@Subscribe
public void handleChangeViewDataModel(ChangeViewEventDataModel event) {
try {
FXMLLoader loader = new ...
0
votes
0
answers
44
views
How to avoid "Continuous access evaluation resulted in challenge with result: InteractionRequired and code: TokenCreatedWithOutdatedPolicies"
I have a user which has been granted to use MS Graph API.
I wrote a code in Java which is using the MicrosoftGraphClient and makes simple lookup to find an user by email. The code is runing fine just ...
Advice
0
votes
4
replies
74
views
How to pass code for options to a selector class with n options?
package lanta.utils;
import java.util.HashMap;
import java.util.Scanner;
public class MenuConstructor {
public HashMap<Integer, String> options;
public int option;
public ...
0
votes
0
answers
63
views
Eclipse Can't find a JDK/JRE [Exit Code 1] [Windows 11]
I'm just attempting to work with Java for the first time, using Eclipse. Every time I try to open Eclipse however, I'm met with an error exit code.
Initially it was 13 , and I followed the steps on ...
Advice
0
votes
1
replies
41
views
Is the intent:// URI scheme a standard Android feature or a browser-specific implementation?
I am researching how deep linking works across different Android browsers. I noticed that using the intent:// syntax allows one browser to launch another or trigger specific app actions.
For example: ...
1
vote
0
answers
78
views
com.fasterxml.jackson(.databind) v3 has issues deserializing `java.util.Properties` (this had worked in v2)
In my Java application I needed to implement a "hierarchical HashMap", meaning: I have a hierarchy of HashMaps (each containing name-value pairs) which are connected in a tree-like fashion ...
2
votes
0
answers
103
views
Why does HashMap in Java still show near O(n) performance under heavy hash collisions despite treeification in Java 8? [duplicate]
I understand that starting from Java 8, HashMap converts buckets with high collision into red-black trees to improve worst-case performance from O(n) to O(log n).
However, when I intentionally create ...