Recent Posts
-
Java – unlimited when trying catch
I encountered a problem when I tried to execute a try catch statement in a loop I ask the user to input letters first …… -
Java 8 stream reduces arbitrary class types
Well, it's not a homework question, it's a question of "I got the Java 8 program and hope to finally pass the certific…… -
Java – place numbers on random points in a 2D array
I have a 2D array with 5 rows and 5 columns I want it to place a '1' character at 8 random points in the 2D array (mak…… -
Java – why can’t the final variable be used in a switch statement?
When I type the following code in eclipse, it complains that "case expressions must be constant expressions." If the a…… -
Java 8: extracting sub streams from streams
I have an object stream from which I need to extract a stream with only some object properties For example, from strea…… -
java – Performance Encog vs Deeplearning4J
We are developing Java projects using neural networks We want to test different network structures on our data set Now…… -
Java – how to use eclipse Ini?
See English answer > eclipse Ini variables 3 I want to include the following without having to hard code the absolu…… -
Java – configure Amazon SQS queue name in spring boot
I am using Amazon SQS & spring boot (spring cloud AWS messaging) I have configured a message listener to receive m…… -
Add a table with borders for each cell in Javadoc
I know I can use HTML tags in Java documents How do I add a table with borders for each cell? I want the cells to alig…… -
Is this the correct implementation of the bridge pattern in Java?
I'm trying to improve my understanding of design patterns, and I'm a little confused about bridge patterns You can see…… -
Java – Android / Google drive image upload
First of all, I'm a French student. Please forgive my English I've launched a photo app, and now I hope it can save th…… -
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…… -
Why doesn’t Java allow you to create instances of inner classes?
See English answers > 25 Java inner classes and static nested classes public class m { String n="n"; static Str…… -
Java – use mockito to simulate enumeration?
I need to simulate the following enumeration: public enum PersonStatus { WORKING,HOLIDAY,SICK } This is beca…… -
Distribute the list evenly into Java’s child lists
I want to distribute the list evenly into a given number of sub lists SL1 -> {1,2,3,4} SL2 -> {5,6,7} SL3 -> …… -
Java – race conditions occur even after synchronization
I'm trying to run multiple threads I have obviously obtained the competitive conditions and can solve it as follows: f…… -
Java – Tomcat permission denied when trying to write to a file
I'd like to send a zip through the Tomcat server But when I try to visit http://localhost:8094/fetna -At project rest …… -
Java – sockettimeoutexception when building ant in eclipse
I had problems building some of my ant scripts using eclipse (some built normally, others didn't) Basically, I'm at ec…… -
Java – static nested subclasses of closed types can still reference private field members. Why?
I've found something vague. With all due respect Suppose we have the following class structure: public class A { p…… -
Java – spring stomp over websocket: message / buffer / cache / stream limit
I can't understand my different parameters in the websocket configuration for developing chat applications involving i…… -
Java – use variable class names instead of many if clauses?
I'm trapped now. I don't know it's easier to solve this problem. Maybe you can help me I have an interface called anim…… -
Java – the equivalent file. Java in Google drive API v3 Settitle method
This is an official example: package com.google.api.services.samples.drive.cmdline; import com.google.api.client.auth…… -
How to create a simple 4 in Java × 3 two dimensional array?
I already know it in C, but Java is more challenging for me This is what I have I just want it to have 4 rows and 3 co…… -
Java – how to disable tlsv1.0 using spring boot and embedded Tomcat 0
I want to use spring boot (version 1.3.3) to deactivate tlsv1 0, but if application YML it doesn't work as follows: @ …… -
External parameters referenced by methods in Java 8
I want to pass external parameters to method references: String prefix = "The number is :"; numbers.forEach(Main::prin…… -
Java – forces abstract methods to execute predefined code – similar to overloaded return statements
I have an abstract class of abstract methods public abstract class Foo{ public int bar(); } This is inherited and …… -
Java – use a body that is not entirely JSON
I am developing a web application based on Jersey rest API I am developing the post service according to the client re…… -
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…… -
Java – when an object is an instance of a base class, call the correct method for the object
I have the following examples in Java: public abstract class Vehicle { private final String name; private fina…… -
Java – error while trying to run weld se application – weld se container failed to initialize – bean archive not found
I created a simple java se application using weld se :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-…… -
Replace all tags except one with regexp in Java
I have the following questions I want to delete all substrings starting with < And ends with > except substring …… -
Java – how to find minimum and maximum values by integer sequence?
I'm new to coding. I try to use math Min and math The max method finds the minimum and maximum values of an integer se……