Questions Tagged [Java]

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.

1,852,464 questions
-3 votes
0 answers
19 views

Java regular expression is validating the date in ddMMMyyy but not validating yyyy-MM-dd

I want to validate different kinds of strings which are of different format like 10JUN2022, 2Mx1D, 4M, 1D, TEN, ONE|TEN etc.. and I have written regular expression for that '''^([0-9A-WYZa-wyz ]+)([xX|...
0 votes
0 answers
9 views

how to convert firestore imageurl into BufferedImage Java

I able to access the Firestore image url on my browser window. I want to convert this image url into BufferedImage after reading I have to find sub-image to get barcode value presented on my image. ...
  • 208
0 votes
0 answers
4 views

Override elasticsearch-rest-high-level-client version in spring boot

I need to override a library version from a spring boot starter. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-...
0 votes
0 answers
11 views

HIbernate ManyToMany: doesn't insert data into JoinTable

I have a problem with ManyToMany relation in hibernate. Everything is working while making an object of class "Bodyguard" and "Concert" but somehow when I'm trying to save the ...
0 votes
0 answers
12 views

How update recycle view after files deleted

I have a recycle view with images, and when i delete files from file system and launch application i see empty white recycle view items. How I can fix it and update recycle view after imaging deleting ...
0 votes
0 answers
6 views

Java Drag and Drop using MousMotionListener only working in one direction [duplicate]

I am painting a rectangle on a Jpanel placed on a Frame. This rectangle should be movable by Drag and Drop. However, it only works if I drag it to the bottom right, if I change the direction of my ...
0 votes
0 answers
17 views

Handling clients c# java

I'm trying to do server multi client handle in java and client in c#. I don't know what's blocking if you can help me: Java server: public static void Server(int port){ ServerSocketFactory ...
1 vote
0 answers
5 views

Unable to compile spark due to attach-javadoc

Goal and Problem I'm trying to compile a minimal version of spark to get our container size down. We only use spark-sql and pyspark. Here's the dockerfile I've been using FROM openjdk:20-bullseye RUN ...
0 votes
0 answers
19 views

How to find out how many URL parameters are there

In page there are some query parameters. So for example, will show results only for scrip 500325....
1 vote
1 answer
14 views

Hibernate and strange OneToMany behaviour

I'm currently on spring-boot-starter-data-jpa:2.7.0 which uses hibernate:5.6.9. I've got a strange behavior when chaining multiple entities. I got three Entities, where E1 contains a OneToMany-List of ...
  • 80
0 votes
0 answers
14 views

Finding the permutations of a string using Stack in java?

I need to find the permutations of a string in Java, for example "abc" will be "abc" "acb" "bac" "bca" "cab" "cba" and return the ...
0 votes
0 answers
32 views

Can´t understand Java basics [duplicate]

I am starting to learn Java and I am struggling trying to understand why in this situation, the account money doesn't change to 5. Trying with code I have realized that inside the method manipulate() ...
0 votes
0 answers
11 views

Could someone explain json parsing to me? Apache Camel

I have three questions. 1. I'm trying to figure out how to combine three json object properties into one from incoming data when parsing (getters, setters etc) and to rename that property or give that ...
1 vote
0 answers
5 views

Getting ERC1155 Wallet Balance Using Java Web3J

Since Web3J doesn't currently support ERC1155, is there a way to get the balance for a wallet? My guess is to use a function for this, but I can't seem to figure out how to get it to work. Function ...
  • 3,390
1 vote
0 answers
6 views

Getting a HTTP 406 Not Acceptable return because jersey doesnt have the request filter with the version

For context, I'm trying to update the used version of the API from V3 to V4. My ressource have these annotations in v3: @Consumes({"application/json"}) @Produces({"application/json"...

15 30 50 per page
1
2 3 4 5
…
123498
Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.