Recent Posts
-
Java – how can I use my program to solve these problems? (many problems were explained internally)
This question is not suitable for timid people and takes time I'm learning Java. I want to know if someone can tell me…… -
Java – returns Boolean or try catch
When a function or method contains error / invalid data, return false or throw an exception? public boolean login(Stri…… -
Java – custom predicate link
I'm learning java 8 I'm trying to create a custom predict link method, as shown below @FunctionalInterface public inte…… -
Is the tag a Java statement?
Whether the tag is a Java statement and whether the tag is a statement defined as a statement in the Java language spe…… -
Java – JSF inputtext and sessions in JSF managed beans
I want to know how to read the value of the input text from the managed bean @H_ 502_ 9@ @H_ 502_ 9@ <h:inputText i…… -
Migration issues from JUnit 4 to JUnit 5
I'm migrating my code base from junit4 to junit5 I used mockito in my testcase Below is the different version I use fo…… -
Java – spring MVC – JSP cannot be rendered
I just started trying to create a new project using spring MVC, and I encountered a problem. There is no manual or tut…… -
Java – decimalformat() and problems with Russian computers
I have a BigDecimal, and I convert it to string to make some modifications DecimalFormat decimalFormat = new DecimalFo…… -
java-ee – ColdFusion web. xml?
For deployment descriptors in J2EE Web containers / Web XML file, does ColdFusion simulation exist? I know that CF run…… -
Java – insert rows programmatically (parent and child)
I am using spring and JDBC template This scenario is customer table and orders table - parent - child relationship I w…… -
Java – string as reference type
See English answer > java string variable setting – reference or value? 9 String s1 = "x"; String s2 = s1; s1 = "xy…… -
Java – how to select overloaded methods by parameter types?
I tried to overload my method based on the parameter type: Fielderror extends to objecterror private String getMessage…… -
How to use resourcebundle to avoid hard coding configuration paths in Java applications?
I want to eliminate the dependency of hard coded path of configuration data in my java application. I know that using …… -
Java – call executorservice. Java from completable future shutdownNow
When one of the already running tasks throws an exception, I need to cancel all the scheduled but not yet running comp…… -
Java – how to get enumeration values from attributes
I have an enumeration with values valid and invalid, which has Boolean attributes associated with it I want to get the…… -
Is it feasible for Java to check locking by forcing synchronization twice?
I've read everything about double check locking fixes that will never work. I don't like delayed initialization, but i…… -
Java – MIDP limited sockets?
In my opinion, there are some restrictions on socket creation in MIDP In order to isolate any possibility that it is a…… -
Java connection pool without JNDI?
I have a connection pool to access MySQL database from servlet I use JNDI to get the data source. JNDI is in my meta-i…… -
Java – keyloak missing form parameter: Grant_ type
I ran the keycloak standalone program on my local computer I created a new realm called "spring test" and then a new c…… -
Java – why does Maven assembly plugin place the same dependencies in my zip multiple times?
I put the assembly descriptors together <assembly> <id>all</id> <formats> <format>zi…… -
Convert this null check to Java 8 optional
I can't understand how to delete the following null check using java 8 option for (A objA : listOfObjectsA) { if (…… -
Java – what is the best mode or method to load a static cache?
Suppose I have the following (assuming only Java 1.4, so there is no generics): public class CacheManager { static…… -
Java – implement the project version page in JSF
I am creating a JSF application I have some projects from the database (such as products). I want to create a JSF page…… -
Java – unit test edge cases using JUnit
I have a utility class called stringprocessor In the breaklongwords () method, zero width spaces will be added to the …… -
Java – object reference types in Ruby
I am a novice in ruby and am currently trying to use some examples in the ruby book as a guide: class Account attr_acc…… -
Java – is there a way to free the saturated connection pool?
I use open ESB on the GlassFish server We receive this error every few days: an error occurred while assigning a conne…… -
Java – find the algorithm with the least number of transactions between people
I've been thinking about it Suppose you have a list of books that people are selling I have a book. I want to buy a bo…… -
Java – jwindow never gets focus events
I have a jwindow (set to always be at the top) that you can click to get a pop-up menu If the user right clicks a wind…… -
Java – why does the JUnit test method need to be void?
I have read many places that the test method should / must be invalid, but no one says why I found no comments / JavaD…… -
The method filter (predict Super employee >) in Java – stream type is not applicable to parameters ((E) – > {})
How to set the value in Java 8 in the filter? I want to set emailid to null, where firstname is Raj How can I do this …… -
Java – hibernate – entity manager factory
I recently encountered a problem that my web application can't start normally, and the stack trace can't tell exactly …… -
Java – authentication fails and a message is displayed using Google’s firebase UI (Code: 10 message: 10)
I made a chat application using firebase real-time database I want to note here: I added SHA1 fingerprint How can I so……