Java
-
jsf-2 – javax. faces. Facesexception: public key for catpcha not found
I want to implement the verification code in my application, but I get this error. Can someone tell me the reason? Sol…… -
Java – sorted concurrentmodification exception
I wrote this applet to sort arrays According to my understanding, it should print 0,1,2 However, when I run this progr…… -
Java generics – a comparable interface
In the following code, the comparable interface is used to ensure that X and y should have the same reference type, bu…… -
Accessing private variables through static methods in Java
Suppose I have the following Java classes: public class A { private int x; public A(int x){ this.x…… -
What protocol does java socket use?
I started using the socket and socketserver classes in Java As mentioned above, I want to know which protocol (or what…… -
What is the reason behind dynamic method parsing in statically typed languages like Java
I'm a little confused about Java's concepts of dynamic / static types and dynamic method parsing consider: public clas…… -
Java – Apache ignite node failed: unable to read magic header
The Apache ignite server deployed on both computers will shut down automatically There is no specific clue in the log …… -
Java – where to place the properties file in eclipse and how to access the path locally and on the server
I see some similar questions here, but I don't know much about them, so I want to ask questions and customize them in …… -
Merge the two lists into a “two-dimensional” list in Java
See English answers > clearest way to combine two lists into a map (Java)? 15 @ h_ 502_ 7@ I have two lists: Names=…… -
Java – creates a map from a list, where the key is part of the internal and external objects
Is it possible (in a simple way) to change it to java8 stream? (please don't comment / answer, if you want to tell me …… -
Java – read semicolon delimited CSV
I have the following code block, which uses opencsv to read CSV files and store column 7 The problem I face is that I …… -
Java – synchronization block within synchronization block
Can I include a synchronization block in another object to synchronize another object? Example: synchronized(myObjetc1…… -
Java – does it still make sense to avoid creating objects for garbage collection?
For example, in a service adapter, you might: One There is an input data model and an output data model, which may eve…… -
Java – which file is read when you run “. / gradlew” on the command line?
I did some digging, but I didn't find much information My best guess is build Gradle files are the default, but I'm cu…… -
Java – directly from completable future Thenaccept return value
I tried to return a list from completable future as follows: public List<Provider> get() { CompletableFuture…… -
Think in Java version 4 – what is classname this. method()
Reading "thinking in Java 4th Edition", I found this example in Chapter 14: public class CoffeeGenerator implements Ge…… -
Java – unable to create a new session Error in appium code
Unable to create new session (original error: a new session is requested, but one of them is in progress) this error i…… -
Java – thread safe denies atomicboolean get() as a condition in the while loop
Suppose I have the following code: AtomicBoolean condition; condition = new AtomicBoolean(false); (...) while(!conditi…… -
How do I change the old for loop to intstream?
This for loop traverses the int array It changes the value of (index - 1) to the value of the current index So the res…… -
Java – use objects in your own constructors
Is it possible (or wise) to use an object in its own constructor? (sorry for the noob problem of improper production) …… -
Mutli thread in Java
When I'm at @ L_ 502_ There is a synchronized method in 0 @ and if multiple threads (such as 10 threads) try to access…… -
Java – use JUnit test in Android studio of firebase
I want to write unit tests for this class in Android studio, but due to the use of firebase, I have a problem creating…… -
In Java: what happens if I change a key in a HashMap to equal another key?
See English answers > changing an object which is used as a map key But what if I change the existing key to be equ…… -
Java – how do I delete elements from a hash table using their values instead of keys?
I'm a novice in hash table. I just understand its basic operation Hashtable<Integer,String> ht = new Hashtable&l…… -
Side effects in Java methods
This may be a trivial question, but I need to clarify public Example someMethod() { // ... different lines here …… -
Java – resteasy002142: multiple resource method matching requests
I'm following two completely different URLs, and I can't explain why: RESTEASY002142: Multiple resource methods m…… -
How to connect to MySQL and PostgreSQL azure databases in Java
Only two new azure services, azure database for MySQL and PostgreSQL, have been released. As a java developer, I want …… -
Java – steps in the alloure2 listener output console
I'm using allure2 and TestNG I want to write my own listener and print @ steps. In the console output I saw the interf…… -
Java – how do I capture connection events in my websocket server using spring 4?
I use spring 4, stomp and sock JS for simple web socket communication, follow this https://github.com/rstoyanchev/spri…… -
Java – use 𞓜 to compress the basic code and operators with strings
I am a novice in Java programming I can't find any information about using | operators and strings I wonder if there i…… -
Java – populating the spinner with data from the SQLite database – application crash
I'm trying to load data (specific columns in the table) into the spinner Every time I save data in allgemein and try t…… -
Has the allobjects () method in Java – realm been deprecated?
I'm trying to display list items in listview using realm offline database I followed some tutorials and he used the al……