2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences2020欧洲杯时间表 any time.

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] and [maven].

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Java with JOptionpane GUI and elseif value

My java program has an equation that isn't recognizing a double value (double PropertyTax) from within brackets so that it can be used in an equation. Any suggestions? Thanks import javax.swing....
0
votes
0answers
6 views

How to implement a recursive range search function for a Binary Search Tree?

I am trying to implement a range search function in a binary search tree (Java). What I mean by a range search function is a function that returns the nodes in a tree given a minimum and maximum value(...
1
vote
0answers
5 views

Vaadin: How to update a css style for a component from another thread?

So I have this issue, I have a component that uses both position: static and position: absolute in it's CSS. It also have a cool animation and I needed to use both positions so it doesn't look weird, ...
0
votes
0answers
3 views

Apache Beam/Java, how to set window/trigger for my case

I have a pipeline as below: Window<String> fixedWindow = Window.<String>into(FixedWindows.of(Duration.standardSeconds(options.getWindowDuration()))) .triggering( ...
0
votes
1answer
14 views

Check if the random number exists in the array

How to check if the random number exist in the array using if statement? I'm trying to print if it exists it will show "found" else "not found" here is my code for(int i = 0; i < arr5.length; i+...
0
votes
1answer
23 views

Remove all keys except one from JSONObject

I have a JSONObject (org.json) like this: { "a": "a", "b": "a", "c": "a", "d": "a", "e": "a", "f": "a", "g": "a", ... } I would like to remove all the keys except a. ...
0
votes
0answers
8 views

How do I use a JButton's Model?

Java Swing builds on the (approximate) concept of MVC and its UI components usually have some kind of Model associated to them. So what is the Model for a JButton? I'm not very familiar to Java Swing....
0
votes
0answers
24 views

Comparing Strings for flight database?

My task was to create a list of flights using ArrayList. I've created a Main class, a Flight class and FlightDatabase class,and in FlightDatabase I've added a few new Flights with departure and array ...
0
votes
0answers
25 views

Why stream is so slow?

I have put this methods in loop, and the stream method is 3 to 4 times slower than old fashion way one... Is it normal ? static double sumUtilStream(ArrayList<Toto> stats) { // Return the ...
0
votes
0answers
7 views

To solve conflict datatype I cast null to string, how to load existing data with custom schema? Spark Java

I am encounter datatype conflict while loading mongodb to hive table, so that I change the schema like SparkSession spark = SparkSession.builder() .master("local[2]") ...
0
votes
1answer
20 views

Am I able to do this for loop in my code to pull out different values?

For my code I am trying to keep track of infection levels for different cities for a homework assignment. When I add one to these values for some reason they don't workout when I run it through this ...
0
votes
0answers
5 views

Weblogic stuck thread Ejb asynchronous

In thread dump i extracted rhe root cause of stuck is, it was waiting for return. Due to many ejb and api call to weblogic i am unable to find the logs for which ejb call is causing the stuck thread. ...
0
votes
1answer
13 views

I am looking for a layout in Java that does the following for me

i am creating my own file explorer in java and i am looking for a layout that helps me place the componets-files inside a panel in rows and columns (like a file manager in windows).The panel ...
0
votes
0answers
9 views

[Error: SQLITE_ERROR: table sheets has no column named sheet]

I added a new column to my Database, but seems like it has not been added correctly. I am getting the following errors. This is where I am adding the database const sheets_db = new sqlite3.Database(...
0
votes
1answer
15 views

Login architechture for a local java desktop application

Hi, I am trying to write my first simple local desktop application with login capabilities. There should be support for different types of users with different access rights. I have managed to come up ...

15 30 50 per page
1
2 3 4 5
110340