Ask Question
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 20- Bountied 20
- Unanswered
- Frequent
- Score
- Unanswered (my tags)
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|... java match group- 53
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. ... java firebase google-cloud-platform google-cloud-firestore file-io- 208
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-... java spring-boot maven- 863
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 ... java hibernate h2- 1
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 ... java android kotlin- 11
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 ... java drag-and-drop jpanel mousemotionlistener- 13
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 ... java c#- 1
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 ... java maven apache-spark apache-spark-sql javadoc- 292
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.... javascript java php html jquery- 9
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 ... java spring-boot hibernate- 80
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 ... java iteration- 9
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() ... java methods- 56
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 ... java apache-camel- 9
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 ... java ethereum smartcontracts web3-java erc1155- 3,390
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"... java jersey- 11
15 30 50 per page12345…123498 Next