Java
-
Java – hibernate inheritance using different primary keys
I'm trying to use table_ PER_ Class policy creates inheritance, but I want to create a different primary key for each …… -
Typescript – async / await clarity, with sleep example
I tried to get async / await suspended through the following implementation, but it didn't work as expected public sta…… -
How do I use selenium java to display the selected option from the multi selection drop-down list?
I'm trying to display all the selected options from the multi - choice drop - down list But there is no right way to d…… -
How to apply some changes to each element in the list > structure using java 8 methods
I have some structures like list < < list < < double > > Listofdoubles I need to convert it to list …… -
Java 8 streams can use multiple projects in a mapping pipeline
I have some data stored in the JPA repository I'm trying to process I wish I could use Java 8 streams to do this, but …… -
Java – processrequest method
When is the processrequest method called? It's hard for me why, why and how to invoke process requests? The reason for…… -
Java – “do not allow exceptions to be caught” checkstyle Report
I'm generating a checkstyle report embedded in Maven site, and one of the problems is that it indicates that exception…… -
Java – (custom) exception of restauthenticationprocessingfilter ordering
I tried to add rest authentication to my application with a token public class RestAuthenticationProcessingFilter exte…… -
Kotlin – NoClassDefFoundError when using exposed
I use exposed as my database library. When I try to run my code, I encounter these errors: Exception in thread "main" …… -
Java – JUnit test cases for custom methods
I'm studying my first job interview as a junior java developer, and now I'm trying to learn JUnit test cases This is a…… -
Java – confused with constructors and subclasses
I can't understand the concept of using constructors with classes This is the parent class: public class A { publi…… -
Java – why does the heap memory usage graph look like this?
I have installed glowroot (Java application monitoring) for my JVM When my application is idle, I get this form of mem…… -
Java – save the data in the clip in the screen rotation in Android
Can anyone help me solve my problem? I have one activity and six clips A clip contains a link to my mediaplayer class,…… -
Java – Google arcore domain model example
I am trying to read and understand the domain model of Google arcore, especially the Android SDK package At present, t…… -
Java-8 – the java8 metaspacesize flag does not work
I have a simple test code that sets - XX: metaspacesize and - XX: maxmetaspacesize to the same value I don't think Met…… -
Multithreaded (c) program threads cannot be terminated
I'm trying to complete a program that uses multiple threads (3) to distribute $4000 hypothetical scholarships Every ti…… -
Android – get notification title
How do I get the title of the notification? This is my code: – from notification service: resultIntent= new Intent(Not…… -
Java – why can’t I import appium if it’s in my gradle dependency?
I'm building with IntelliJ Community Edition with gradle This is my build gradle deps: dependencies { testCompile…… -
Java – request getRequestDispatcher(). Forward create a new thread?
I have a use case that schedules requests by setting some properties and pruning the request URL to the same context W…… -
Java – spring data Cassandra: how to use composite keys to query tables?
I have the following families: @Table(value = "request_event") public class RequestEvent { @PrimaryKeyColumn(name…… -
Java – removes the space between the toolbar and tabrayout
I have an appbarlayout with tablayout, which is located in the activity with toolbar But there is a space between the …… -
Java – use spring batch to parse dates from files to localdatetime
I'm trying to read a CSV file with a date using spring batch, but I can't resolve the date to a localdatetime object: …… -
Java – janusgraph outputs the subgraph as a graphson error
I tried to use janusgraph to output a sub graph in the gremlin shell as graphson Tinkerpop documentation for reference…… -
Summation equation in Java?
I want to know how to write this summation equation in Java But the trick is, I need the sum equal to the amount x= To…… -
How to delete a folder containing other folders in Java?
See English answers > delete directories recursively in Java 23 import java.io.*; public class file03 { public …… -
Java – replace the table name in the SQL query and the escape characters around the column name
for example query = " select "2017-06-08" as new_colum,"true" as my_flag,"column1","column2" from "table1" " The above…… -
Java – converts a list of objects with a map into a primitive array
I've been looking for something I need to do, but it's hard for me to put them together First of all, this is my goal.…… -
Java – how to create / invoke SQL views in Hibernate
This is in document hbm. Views created in XML <database-object> <create><![CDATA[CREATE VIEW docVie…… -
Java – kotlin: generic method and for loop request iterator ()
This is a simple generic method, and passing args in forgs to the for loop causes an error: fun main(args: Array<St…… -
Types – how to specify the element type in the vector of SbCl (or common LISP)?
I tried in SbCl 1.1 14, but it seems that type checking ignores the declaration of the vector element (defun test (vec…… -
Java – access to instances of static methods
I just started using Java. I was looking at the nested class topic and tried something. Suddenly, this happened: class…… -
Java – instead of creating a new string object, print a string with edit characters using a char array
The purpose of this code is to change the string "a happy" to "a hippy" String originalStr = "A Happy"; char[] charOri……