Java
-
Why is java ` string The tochararray() ` and ‘new string (char []) methods do not accept charset encoding?
Why Java string Tochararray() and the new string (char []) methods do not accept character set encoding? If you are us…… -
Java – “the eclipse executable launcher cannot find its on-demand shared library”
First of all, I know that many people have asked this. I have checked all these, but no one has solved my problem I ge…… -
Java – how far can I count from 1, up to N times when I can use any number
My questions are as follows; For the number n, I need to find the maximum value I can calculate. Each number can be us…… -
Java – refactoring code
I'm learning the gradle tool API I have two methods, only one line of code is different I need your advice on how we c…… -
java. Lang.illegalargumentexception: class java text. Decimalformat declares multiple JSON fields named maximumintegerdigits
I'm making an Ajax call to the servlet I want the data returned from the servlet to the jsp: PrintWriter out = respons…… -
JavaFX slider to change width (thickness)
My problem is that the default slider is too thin Thank you for your advice Solution In JavaFX, most styles can be don…… -
How do you validate the call of the same simulation method using the same parameters that change the state between calls in mockito?
I have the following code for unit testing: public void foo() { Entity entity = //... persistence.save(entity)…… -
Java – check that all bits in the BitSet are set to true
I use BitSet in my application and want to check a method if all used bits in BitSet are set to true Now, I know that …… -
Java – receive a closeablehttpresponse on the client
I have a Java controller that must send me some text data and different byte arrays So I'm building n multipart reques…… -
Can I create a virtual machine without virtual network in azure Explorer
I am trying to create a virtual machine (VM) in azure using arm template In the classic model of IAAs, we can create v…… -
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……