Java
-
Java – how to delete / filter / ignore certain packages from Emma (code coverage)
I tried to delete some packages from my report and got into trouble Can someone help me? I use Emma in my ant process …… -
Java – why not more boring GC
Except Azul, all GCS I know are concurrent, but at least there are some small worldwide components Why isn't there mor…… -
How to call collections on a part of a Java array Shuffle
So I have the following array: String [] randomList = new String [16]; randomList[0]="Dog"; randomList[1]="Dog…… -
Java – use the properties in the properties file
I apologize for the title I can't find a better way to explain the situation I use the property class to load property…… -
Java – how do I change the background color of jooptionpane?
I've added joptionpane to my application, but I don't know how to change the background color to white@ H_ 301_ 2@`int…… -
Java – check user name and password in Android
I have a username and password field, now I need to check it and redirect it to the next page of Android public void o…… -
Do java – HQL queries always hit the database and get results?
I'm going through hibernate and when to use criteria vs HQL. My understanding is to use hibernate. Whenever we query t…… -
Java – resource folder in Android studio unit test
I have a gradle project with the following structure: project/ src/ androidTest/ java/ …… -
Java – get the absolute path of all files in a given folder
I need to save all the file names and absolute paths in a given directory in memory myDirectory. List () – retrieves o…… -
Can you make an unclosed and indivisible Java application?
Is there any way to ensure that users cannot close or leave my swing application? I tried to make it full screen, but …… -
Predicate based method of Java 8 stream indexof
See English answers > stream way to get index of first element matching Boolean int index = list.stream().indexOf(e…… -
java – Selenium – driver. Getpagesource () is different from the source viewed from the browser
I tried to use selenium to capture the source code from the specified HTML file, but I don't know why. I didn't get th…… -
Java – simple XML parsing from XML to list
I use simple XML (simple-xml-2.6.2. Jar) to parse XML files, such as: <?xml version="1.0" encoding="UTF-8" ?> &…… -
Open source Java reporting framework
I want to create several reports and select data from several SQL tables, so I don't create different reports. I want …… -
Java – declare and throw and throw without is declared exceptions
What is the difference between dual methods in Java? public void methodA() throws AnException { //do something …… -
Check whether the elements in the array are subclasses in Java
Let's assume that I want to check whether the values in the object array belong to a superclass or subclass. For examp…… -
Java – get an instance of class [runtime type token]
I created a preferences class. For getters, I don't want to use runtime type token So this is my getter method: public…… -
java. math. BigInteger pow (exponential) problem
I did some tests on the pow (index) method Unfortunately, my math skills are not enough to solve the following problem…… -
Java – spring MVC does not record all exceptions
I have spring MVC settings to log exceptions using commons, but I find that some runtime exceptions are not logged Thi…… -
Java – how to compile only changed source files using ant
I'm trying to write an ant build for compiling the source folder, which is the target of my compiled script <target…… -
Java – Alphanumeric regular expression
I want a regular expression in Java, which must contain at least one letter and one number in any position The passwor…… -
Java – how do I initialize graphics G?
I want to display gameover images in Pacman games at the end of my life But I call paintgameoverscreen (graphics g), a…… -
Java – displays tooltips above cells in JTable
When the user enters an incorrect value in it, I need to display a tooltip above (or below:) the cell (see the figure …… -
Java 8 time zone conversion
In Java 8, I want to convert datetime from UTC to ACST (UTC 9:30) Input – > 2014-09-14t17:00:00 00:00 Output – >…… -
What happens when a collection in Java exceeds its capacity?
I have a service that schedules all calls in memory because we don't want to lose data. At the same time, we need this…… -
Java converts objects to unimplemented interfaces
I found the following problems in my study book and was a little confused: Given the following code, which option, if …… -
Java – web app running grunt and Tomcat servers (spring, angular, grunt, maven, Tomcat)
OK, so I've been reading several other stack problems and trying to piece them together without much luck Basically, m…… -
Java – before I need to reset, I can use randomgenerator How many times does nextdouble()?
I use the random class in Java as a pseudo - random number generator I am using the function nextdouble many times (~ …… -
Java – Convert date to localdate and return strange results around 200ad
When I converted dates to local dates in about 200 years, I got inconsistent results Use the following code for conver…… -
Java – would it be better to instantiate a new jdbctemplate in each query or inject a new jdbctemplate anywhere?
I have a Java library. I use spring's JDBC support to access the database through JDBC This library contains about 100…… -
Calculate the number of days between two dates in Java
See English answers > Android / Java – date difference in days17 public static long getNoOfDaysBtwnDates(String exp…… -
Java – do not log in to Catalina out
I have the following logging Properties configuration: 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.or……