正规365体育投注

Dark mode beta

You’ve been asking for dark mode for years.
正规365体育投注 The is finally here.

Change your preferences any time.

Questions tagged [java]

正规365体育投注 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
8 views

How to get a Long Value from a Java function and catch in a service.ts?

im newby in Java, i work in PLSQL and im trying to making a project using JHipster. I am trying to make a function that give me back the Owner from a Team, to check in angular if he is the owner, to ...
0
votes
0answers
5 views

Find item in hashtable with limited information about the item [duplicate]

I have a custom object called Car. I am given a large number of car factory numbers and colors. I made a hash table of the cars and the task is: given a factory number, print the color of the car. I ...
0
votes
0answers
4 views

How do i queue/merge multiple sounds in one file in Java?

So i am trying to find a way how to link two or more sounds together. im not sure how to explain it, but its basicly starting the sound2 while the sound1 is playing after time x. And finally writing ...
0
votes
0answers
5 views

Attribute must be constant when get a value from properties

I am working with Java javax.ws.rs.Path and I am getting the path from the properties. Even though the constant is final static I am the getting Attribute must be constant issue. This is my how I am ...
-2
votes
0answers
12 views

Determine whether there is an integer A such that it has exactly X positive integer divisors and exactly K of them are prime numbers

How to determine whether there is an integer A such that it has exactly X positive integer divisors and exactly K of them are prime numbers.If the integer exists print "1" else print "0". Example: ...
0
votes
0answers
7 views

Store multiple nodes to Firebase Realtime Database

I'm new to using Firebase and Android Studio and I need multiple nodes to save to a realtime database in Firebase from my android app, these include users, budgets and spending as it's an expense ...
0
votes
0answers
11 views

Replacing “null”s in java.util.formatter output

I'd like to override the behavior of Java's Formatter to change it's behavior for handling nulls. Right now, whenever it encounters a null value, it inserts the string "null" in place for the format ...
0
votes
0answers
5 views

How to send multipart/form-data with Spring RestTemplate?

I want to send a POST request to a rest endpoint. the rest endpoint documentation says: Create a node and add it as a primary child of node nodeId. This endpoint supports both JSON and ...
2
votes
0answers
8 views

How to implement RecyclerView to Fragment of BottomNavigationBar?

I don't know how to implement RecyclerView to fragment. First I start to explain my code. public class HomeFragment extends Fragment { @Nullable @Override public View onCreateView(...
0
votes
0answers
7 views

Cannot create an instance of Oracle Java Cloud Service in Oracle Cloud

In Oracle Cloud when trying to create an instance of "Oracle Java Cloud Service", in Step 2, a database created in the same account does not show up, this not allowing me to create the instance. ...
0
votes
0answers
7 views

Why the correct median is not obtained using my AVL tree data structure?

The question is to obtain median of given elements. If odd then simply return the middle element else return the mean of the n/2 and n/2 + 1 element. The problem is that it is always returning 1 as ...
0
votes
0answers
9 views

How do you make Graphics visible?

After adding a canvas to a JFrame, drawing a rectangle to a buffered image, and finally printing the buffered image, nothing is showing up on screen. Here's the code: import javax.swing.JFrame; ...
0
votes
0answers
14 views

getting data from localhost using angular - spring boot

i'm working on build an web app using angular and spring boot.. so i try to get data from localhost but i get nothing.. this is the json data from the server and this my service ts import { ...
1
vote
1answer
10 views

How to get classpath resources by extensions?

Suppose I've got a few resource files in my classpath: /a/b/c/x1.txt /a/b/d/x2.txt /a/b/e/x3.txt My code does not know the full paths of these resource files. It knows only their extension .txt. How ...
0
votes
1answer
13 views

How do you read a file and set specific float values to a specific array in java?

Say I had a file set up like this: 20 88.6 16 71.6 19.8 93.3 18.4 84.3 17.1 80.6 15.5 75.2 14.7 69.7 17.1 82 The two float values are separated by a space, say ...

15 30 50 per page
1
2 3 4 5
110554