query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
Using single RMI Registry
Remote RMI Registry
need help to run RMI Registry
1
stackoverflowdupquestions
Mutual Authentication with x509 Certificates using HttpClient 4.0.1
HTTP SSL Mutual Authentication Code worked in Apache HTTPClient 4.0.1 but fails in 4.1
Extracting SubjectAlternativeName from X509 in Java
1
stackoverflowdupquestions
Return an integer number for a given byte[16] array and bit range between 1 and 128. Big endian
Converting Little Endian to Big Endian
Byte ordering in byte buffer for big endian
1
stackoverflowdupquestions
Compiler error for string switch case label
Why can't I use switch statement on a String?
how to use Switch with a string
1
stackoverflowdupquestions
Java font size from width
JavaFX font size from width
Get font file as a File object or get its path
1
stackoverflowdupquestions
Get single field from JSON using Jackson
How to read single JSON field with Jackson
TokenBuffer Jackson Json
1
stackoverflowdupquestions
Google visualization AnnotationChart usage in GWT
GWT Google Visualization - subsequent redraws change number of Y axis steps?
Usage of scheduleDeferred in GWT?
1
stackoverflowdupquestions
FixedThreadPool vs CachedThreadPool: the lesser of two evils
Java CachedThreadPool vs FixedThreadPool
how to correctly pass the arguments to fixedthreadpool, and control thread execution?
1
stackoverflowdupquestions
extract substring in java using regex
How do you extract a substring from a string based on an input regex
getting substring regex java
1
stackoverflowdupquestions
Getting unix timestamp from Date()
Date to Unix timestamp
Trouble parsing Unix Timestamp in Android
1
stackoverflowdupquestions
Trouble with reading file from assets folder in Android
android read from a file from the assets folder
Android: path of assets folder for File()?
1
stackoverflowdupquestions
HashMap.containsValue - What's the point?
Map.containsValue() is returning false when value is is in the map
confusion about HashMap's method containsValue
1
stackoverflowdupquestions
How to create an ARFF file from an array in java?
Using a arff file for storing data
how to remove attributes from arff that are not in range?
1
stackoverflowdupquestions
Bad class file magic when using dx.bat
Bad class file magic on dx.bat
Java - Run & use .bat file
1
stackoverflowdupquestions
How to generate java class with @XmlRootElement from WSDL using xjc in command prompt
No @XmlRootElement generated by JAXB
How to change the name of the XmlRootElement in JAXB deppending on the object?
1
stackoverflowdupquestions
_ (underscore) is a reserved keyword
Is there a Java way to write code like "Python's underscore for loop"?
Regex expression to check for string name with underscore in java
1
stackoverflowdupquestions
Calculating Manhattan Distance
Can somebody explain in Manhattan dstance for the 8 puzzle in java for me?
Calculating the distance between 2 given points
1
stackoverflowdupquestions
Using @Nullable in Java
@Nullable annotation usage
Where to put @Nullable on methods with nullable return types?
1
stackoverflowdupquestions
Spring 3 @ImportResource with multiple files
How to load multiple configuration file from classpath using @ImportResource annotation in Spring
Spring destroyScopedBean?
1
stackoverflowdupquestions
How to create a custom validator in Play Framework 2.0?
Play framework URL validator?
How to get ExecutableValidator? Hibernate Validator
1
stackoverflowdupquestions
Java Composition and Aggregation at same class?
Aggregation versus Composition
Java: bidiretional composition example
1
stackoverflowdupquestions
java: HashMap<String, int> not working
HashMap and int as key
HashMap in Java Not Working
1
stackoverflowdupquestions
Leaking this in constructor
Java leaking this in constructor
Leaking Tomcat JDBC MySQL driver in a Spring environment
1
stackoverflowdupquestions
How to generate object @Entities from database?
Generate JPA 2 Entities from existing Database
How to create common method for different entities
1
stackoverflowdupquestions
Using Gson with Interface Types
How to deserialize nested interface types with Gson
GSON list of list
1
stackoverflowdupquestions
Finding sub matrix of a given matrix
Getting reference of a sub-matrix in java
what is the difference between `Matrix.setRotate` and `Matrix.postRotate`
1
stackoverflowdupquestions
How to write a proper global error handler with Spring MVC / Spring Boot
How I create an error handler (404, 500...) in Spring boot/mvc?
can we use spring boot and spring mvc 4 together
1
stackoverflowdupquestions
Get Clob Java Spring with SqlRowSet
Spring SqlRowSet getting Clob as String using JdbcTemplate
Getting hibernate to log clob parameters
1
stackoverflowdupquestions
Converting 32-bit unsigned integer (big endian) to long and back
Converting big endian to 2-byte number
Little and Big Endian in Java (android)
1
stackoverflowdupquestions
Java code for using google custom search API
Google Custom Search API, how can I traverse google result pages programatically using Java?
Google Image Search API Max Result Size
1
stackoverflowdupquestions
Convert a number from scientific notation to decimal in JAVA
Format double value in scientific notation
why output is in scientific notation?
1
stackoverflowdupquestions
Is it safe not to close a Java Scanner, provided I close the underlying readable?
Where to close this `input` Scanner?
What if I do not close the Scanner?
1
stackoverflowdupquestions
Memory leak when calling java code from C using JNI
Avoiding memory leak in JNI C to/from Java
How to check memory leak?
1
stackoverflowdupquestions
Convert long time difference to format HH:mm [Java]
converting time from hh:mm:ss to hh:mm in java
How to convert minutes to HH:mm on android?
1
stackoverflowdupquestions
Split a string containing command-line parameters into a String[] in Java
How to split a command line like string?
Java command line parameters
1
stackoverflowdupquestions
Java: How to insert CLOB into oracle database
Insert CLOB into Oracle database
Java: Clob to byte[]
1
stackoverflowdupquestions
JFrame Exit on close Java
JFrame has no close window?
Java jFrame close button
1
stackoverflowdupquestions
Python HMAC-SHA1 vs Java HMAC-SHA1 different results
Java Hmac-Sha1 hexdigest different to Nodejs
Implementation of hmac-sha1 in java according to rfc2202
1
stackoverflowdupquestions
Java Regex Extract String between two Strings
Extract string between two strings in java
How to extract data from a string Regex
1
stackoverflowdupquestions
Get Last Friday of Month in Java
Find the last Friday of previous month and check how many days in between current date
Can't convert int month to month name android java
1
stackoverflowdupquestions
Implement OAuth in Java
Working with OAuth with Java
OAuth 2.0 Open Source implementation in Java
1
stackoverflowdupquestions
Read and Write a large Image
Read region from very large image file in Java
Java http - read large file
1
stackoverflowdupquestions
BadPaddingException : Decryption error
RSA Encryption-Decryption : BadPaddingException : Data must start with zero
RSA keyblock wrapper: javax.crypto.BadPaddingException: Decryption error
1
stackoverflowdupquestions
Exception :com.sun.jersey.spi.inject.Errors$ErrorMessagesException
Errors$ErrorMessagesException when using Jersey in Java
Could not find a suitable constructor in com.sun.jersey.guice.spi.container.servlet.GuiceContainer
1
stackoverflowdupquestions
How to parse a ISO 8601 String to Java Date on Android
Converting ISO 8601-compliant String to java.util.Date
an elegant way to transfer current date time into ISO 8601 format
1
stackoverflowdupquestions
Choosing Java vs Python on Google App Engine
Google App Engine -- Java or Python?
Android - Choosing HTTP Java library
1
stackoverflowdupquestions
Simple Websocket Client in Java - Connection issue
javax.websocket client simple example
netty websocket connection via java client
1
stackoverflowdupquestions
Why does Java have an "unreachable statement" compiler error?
Unreachable Statement in Java
Why am I getting an Unreachable Statement error in Java?
1
stackoverflowdupquestions
org.json.JSONException: Unterminated string at 737 [character 738 line 1]
JSONException: Unterminated string
How to correctly handle an Unterminated string exception?
1
stackoverflowdupquestions
Why IntegerProperty implements Property<Number> and not Property<Integer>?
Why does LongProperty implement Property<Number> but not Property<Long>?
Check if any property in class has been set
1
stackoverflowdupquestions
Difference between Semaphore and Condition (ReentrantLock)
Binary Semaphore vs a ReentrantLock
How does semaphore work?
1
stackoverflowdupquestions
Getting template text from FreeMarker in Struts2 app
Getting template text from FreeMarker in Spring app
How to get a request object in Freemarker
1
stackoverflowdupquestions
Trying to embed vlcj media player in a WindowsCanvas inside a JPanel
Embedding VLCJ in JPanel
VLCJ doesn't play video
1
stackoverflowdupquestions
Is there any good generic JPA DAO implemenation?
Single DAO & generic CRUD methods (JPA/Hibernate + Spring)
JPA 2 and generic classes
1
stackoverflowdupquestions
Jumping from one method to another using goto statement
Is there a goto statement in Java?
How to use the goto statement in Android
1
stackoverflowdupquestions
Java BigDecimal trigonometric methods
Higher precision doubles and trigonometric functions in Java
BigDecimal to String in java?
1
stackoverflowdupquestions
How Can I Pipe the Java Console Output to File Without Java Web Start?
How do I pipe the Java console output to a file?
pipe simple split in java
1
stackoverflowdupquestions
Why doesn't Java have true multidimensional arrays?
Multidimensional arrays in Java and C#
How does array.sort work with multidimensional arrays?
1
stackoverflowdupquestions
Using m4 macros with Eclipse & Java
Macros in Java?
Scala: generate Java annotation with parameter using Scala macros
1
stackoverflowdupquestions
Remove filename extension in Java
Remove the extension of a file
Which of the extension classes is this object?
1
stackoverflowdupquestions
How to redirect all logs from hibernate and spring to log4j2?
Logging Spring using Log4j2
Getting log4j2 to work with eclipse
1
stackoverflowdupquestions
Log4j logs decreases application performance?
log4j performance
Why does Log4j need the class name?
1
stackoverflowdupquestions
Exporting Images with JAR in Eclipse (Java)
Exporting java project to runnable jar file with images
Eclipse exporting JAR in WAR
1
stackoverflowdupquestions
Retrieve test name on TestNG
Is it possible to write the name of a testng test from a called method?
How pass File to testng test method?
1
stackoverflowdupquestions
How can I configure a Hudson job to use a specific JDK?
Hudson JDK 9 JAVA_HOME doesn't look like a JDK directory
Ant with Hudson
1
stackoverflowdupquestions
Troubleshooting unbounded Java Resident Set Size(RSS) growth
Growing resident memory usage (RSS) of Java Process
Problem with unbounded Java Generic interface
1
stackoverflowdupquestions
Generate a random LocalDate with java.time
How to convert LocalDate to SQL Date Java?
Java 8 LocalDate to JavaScript Date
1
stackoverflowdupquestions
Hibernate: evict() a persistent object while storing its changes
Should I commit hibernate transaction before calling session.evict(obj)
Evict dependant collections together with parent entity
1
stackoverflowdupquestions
Session timeout in Spring Boot app behind Apache
Default session timeout for Apache Tomcat applications
How to use SpringTemplateEngine when using Spring Boot
1
stackoverflowdupquestions
SWT application is running from Eclipse IDE, not running when I create a jar via Maven and run. Gives UnsatisfiedlinkException
How do you build an SWT application with Maven
swt.jar where is it?
1
stackoverflowdupquestions
Jersey 'NoContent' response returns 200 instead of 204
Returning 200 response code instead of 204
Is it possible to access the html of a site with a 204 response code via java.net?
1
stackoverflowdupquestions
Static Vs. Dynamic Binding in Java
Static Binding and Dynamic Binding
Dynamic Binding
1
stackoverflowdupquestions
InvalidKeyException Illegal key size
InvalidKeyException Illegal Key Size when i export runnable jar file
InvalidKeyException Encrypting-Decrypting a file - Java / Android
1
stackoverflowdupquestions
maximum size of java class / exception table
What is the maximum size of a Java .class file?
Why can't I print the maximum long value?
1
stackoverflowdupquestions
Importing Arraylist to JTable
Load arrayList data into JTable
Use arraylist to fill a JTable in java
1
stackoverflowdupquestions
Spring Data does not handle Pageable action argument creation
Failed to instantiate Pageable bean
creating Spring Repository Select using multiple "like" and Pageable
1
stackoverflowdupquestions
Comparing Integer objects vs int
Comparing int value in java?
Usage of int vs Integer in Java
1
stackoverflowdupquestions
Find all drive letters in Java
Acquiring drive names (as opposed to drive letters) in Java
How to create a regexpression for a name with just letters and one "-" i java?
1
stackoverflowdupquestions
java finalize method use
When is the finalize() method called in Java?
finalize() method
1
stackoverflowdupquestions
pass values from jsp to servlet using <a href>
how to pass values from jsp to servlet through <a href> using jstl
When do you use a JSP and when a Servlet?
1
stackoverflowdupquestions
Java Swing Combobox removeAllItems calling ItemStateChanged also?
Why is itemStateChanged on JComboBox is called twice when changed?
Can I create List of comboBox type?
1
stackoverflowdupquestions
Can't load IA 32-bit .dll on a AMD 64-bit platform
Can't load IA 32-bit .dll on a AMD 64-bit platform JNI
JNIConnector.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform Skype4java
1
stackoverflowdupquestions
How to write Pagination logic?
pagination in java?
Does Spring (3) have any built in support for pagination?
1
stackoverflowdupquestions
Attach native application via JNI to already running JVM on Linux
Attach to already running JVM
JNI passing a long value to a native method
1
stackoverflowdupquestions
Why does java have StringBuilder or StringBuffer?
Difference between StringBuilder and StringBuffer
StringBuffer or StringBuilder use in a Web Application DAO
1
stackoverflowdupquestions
How can I override the toString method of an ArrayList in Java?
How to write a toString method for ArrayList?
How to convert an arrayList.toString() into an actual arraylist
1
stackoverflowdupquestions
How to fix Eclipse validation error "No grammar constraints detected for the document"?
XML Error "document is invalid.no grammar found"
Why aren't keys being detected?
1
stackoverflowdupquestions
Is "new String()" immutable as well?
Is Java String immutable?
Is this java class immutable?
1
stackoverflowdupquestions
Transparent JFrame
Set JFrame background transparent but show contents
JFrame partly transparent
1
stackoverflowdupquestions
Polymorphism and Interfaces in Java (can polymorphism be used to implement interfaces...why?)
polymorphism in java
Polymorphism on simple example
1
stackoverflowdupquestions
Collections.emptyList() returns a List<Object>?
the puzzle of Collections.emptyList()
Can Collections.EMPTY_LIST **fail** compared to Collections.emptyList()?
1
stackoverflowdupquestions
How to add CheckBox's to a TableView in JavaFX
JavaFx CheckBox on TableView does not update model when checked/unchecked
Javafx - I cannot get data into a TableView
1
stackoverflowdupquestions
Is there a good *strict* date parser for Java?
convert string to Date using strict format
Is JavaScript compatible with strict Page Object Pattern?
1
stackoverflowdupquestions
JDBC and Oracle conn.commit and conn.setAutocommit not working properly
What is use of Connection.setAutoCommit(false); when using Oracle database?
Error while making connection to Oracle database in JDBC
1
stackoverflowdupquestions
Hibernate derived property with xml mapping
Hibernate derived Entity
Hibernate OneToOneToOne Mapping
1
stackoverflowdupquestions
How to prevent Gson from expressing integers as floats
How can I prevent gson from converting integers to doubles
Expressing an integer as a sum of integers with minimum variance
1
stackoverflowdupquestions
Are defaults in JDK 8 a form of multiple inheritance in Java?
Multiple inheritance in Java or not?
Java Inheritance
1
stackoverflowdupquestions
Reading from src/main/resources gives NullPointerException
Java path to file in src/main/resources
How to get src/main/resources path from Java
1
stackoverflowdupquestions
How do I add an attachment to a response payload in Spring-WS?
Spring WS web service. Adding an attachment to the response using SAAJ - No adapter for endpoint
post method does not get payload object
1
stackoverflowdupquestions
Java benchmarking tool
Java Benchmarking
D lang simple benchmarking
1
stackoverflowdupquestions