query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
Chaining Optionals in Java 8
What's the most elegant way to combine optionals?
java 8 list of optionals collect to list compilation error
1
stackoverflowdupquestions
Java Package Does Not Exist Error
trying to understand a package does not exist error
Java package does not exist after library import
1
stackoverflowdupquestions
Update nested field in an index of ElasticSearch with Java API
How to update nested objects in Elasticsearch 2.2 script via Java API
elasticsearch java api putmapping from json file error
1
stackoverflowdupquestions
Java Swing on high-DPI screen
How to set the DPI of Java Swing apps on Windows/Linux?
How to find real display density (DPI) from Java code?
1
stackoverflowdupquestions
How to change the color of a single JProgressBar in Nimbus?
Change colors for JProgressBar with Nimbus?
How JProgressbar should work?
1
stackoverflowdupquestions
Configure Sonar to exclude files from Maven pom.xml
sonar-maven-plugin: Can not set sonar.sources src/main/resources
sonar-maven-plugin: extending sonar.sources in multi-module project
1
stackoverflowdupquestions
Java array initialization list ending with a comma
array with comma and without comma
Array initialization error
1
stackoverflowdupquestions
How to minimize a JFrame window from Java?
How to minimize a JFrame by clicking on a JButton
How to disable the minimize button in JFrame?
1
stackoverflowdupquestions
Random printing order for System.out & System.err calls
Java: System.out.println and System.err.println out of order
Do action when something is printed in System.err
1
stackoverflowdupquestions
What is the status of SwingLabs (SwingX) post acquisition
Is there any [un]official info about SwingX-WS 1.1 and its development status?
SwingX and NetBeans 6.9.1 GUI designer (JXCollapsiblePane/JXTaskPane)
1
stackoverflowdupquestions
How does Java handle Certificates in Spring Ws?
How does Spring ws handle certificates?
Spring WS DefaultWsdl11Definition Error
1
stackoverflowdupquestions
How do I put a Java app in the system tray?
How to add application to System Tray
Position window above system tray
1
stackoverflowdupquestions
Java Scanner does not wait for input
java.util.Scanner: wait for input
Java input/output and Scanner object
1
stackoverflowdupquestions
How to identify polygon using opencv or javacv?
How to edit this method to draw polygon using javacv?
Object Finding with the help of javaCV
1
stackoverflowdupquestions
How to resize this chart in jfreechart, netbeans?
How to add a Jfreechart(pie chart) to a panel in netbeans
How to create a Chart Explorer with Java and JFreeChart?
1
stackoverflowdupquestions
IntelliJ - Convert a Java project/module into a Maven project/module
how to add program arguments for maven command line project in intellij?
Can't add maven module in IntelliJ IDEA
1
stackoverflowdupquestions
Is it worth to obfuscate java web application?
Do you obfuscate your commercial Java code?
Obfuscate URLs in Android client application
1
stackoverflowdupquestions
Adding a JScrollPane to a JTable component
Adding JTable to JScrollPane
IntelliJ JTable in JScrollPane
1
stackoverflowdupquestions
Java: Wildcard Types Mismatch Results in Compilation Error
Wildcard Type Mismatch (int) compilation error, but not (String)
Java generics: Wildcard capture compilation error
1
stackoverflowdupquestions
Adding an Icon to JTable by overriding DefaultTableCellRenderer
How to get Icon from JTable
Overriding JTable's DefaultTableCellRenderer to center all the cells in a JTable
1
stackoverflowdupquestions
Providing input/subcommands to command executed over SSH with JSch
Providing input/subcommands to command executed over SSH with JSch Using JSF
Multiple SHELL Channels JSch java SSH
1
stackoverflowdupquestions
How to call a thread to run on specific time in java?
How to call a method on specific time in java?
How to run a specific method on a specific date and time?
1
stackoverflowdupquestions
Making Spring 3 MVC controller method Transactional
Why we shouldn't make a Spring MVC controller @Transactional?
What to return if Spring MVC controller method doesn't return value?
1
stackoverflowdupquestions
How to mock ResourceBundle.getString()?
Java unit test can't access ResourceBundle
Get system language and use with ResourceBundle
1
stackoverflowdupquestions
Java, Removing backslash in string object
How to remove the backslash from properties value in java
JSON adding backslash automatically
1
stackoverflowdupquestions
How can I determine the IP of my router/gateway in Java?
Get default gateway in java
how to use jsoup on router address?
1
stackoverflowdupquestions
Get Values from Enum Known Only At Runtime
Trying to get the associated value from an Enum at runtime in Java
Error enum java
1
stackoverflowdupquestions
ResultSet.getTimestamp("date") vs ResultSet.getTimestamp("date", Calendar.getInstance(tz))
How to update date in Date format to a resultset?
Java:ResultSet error
1
stackoverflowdupquestions
Convert XML file to CSV in java
Convert an XML file to CSV file using java (with multiple element values)
Convert Java object to XML string
1
stackoverflowdupquestions
Stopping mouseMoved
Stopping MouseMoved Event in Java
stopping application after some time
1
stackoverflowdupquestions
Spring RestTemplate HTTP Post with parameters cause 400 bad request error
Spring RESTtemplate POST
How do I log response in Spring RestTemplate?
1
stackoverflowdupquestions
SFTP file transfer using Java JSch
How to resolve Java UnknownHostKey, while using JSch SFTP library?
JSch SFTP verbose logging
1
stackoverflowdupquestions
Import package.* vs import package.SpecificType
Import package.* or Import package.class_name
Java Package defnition
1
stackoverflowdupquestions
Javax ImageIO IIOException for apparently no reason
imageio.IIOException: Can't read input file
Java ImageIO IIOException: Unsupported image type?
1
stackoverflowdupquestions
Call destructor on close objects
Is there a destructor for Java?
How to close a text file using java
1
stackoverflowdupquestions
How to identify a missing method (Binary Compatibility) in a JAR statically
Statically checking a Java app for link errors
Issue about "binary compatibility"
1
stackoverflowdupquestions
Compare two dates in Java
How to compare dates in Java?
Compare DateTime objects by their dates
1
stackoverflowdupquestions
HTTP/1.1 500 Internal Server Error Get while webpage works Java
500 Internal error from HTTP POST request
GlassFish Http Status 500 - Internal Server Error
1
stackoverflowdupquestions
How to create my custom SWT control selectable?
Create a custom button with SWT
Is there any way to make labels selectable in SWT?
1
stackoverflowdupquestions
java.time.LocalDate to java.util.Date
Convert java.time.LocalDate into java.util.Date type
Proper Type for Date Object That Needs to be a LocalDate
1
stackoverflowdupquestions
Server Side Java: Can it read CAC cards and if so, how?
CAC authentication in a Java WebApp
Calling a Card from an Array of Cards
1
stackoverflowdupquestions
java merge two xml strings in java
Merge two xml strings in java
UPDATE WHERE in MERGE
1
stackoverflowdupquestions
How to make cell as non editable based on another cell value in Editable Grid in gxt
How to handle the click on the cell in the GXT 2.2 grid?
GWT Celltable How to make Non-Editable cell in Editable column
1
stackoverflowdupquestions
embedding Google Maps in a JavaFX 2.2 desktop application throwing exception and generaly not performing
Java desktop application with google maps
Embedding an application inside another application
1
stackoverflowdupquestions
final static vs final non-static fields and JVM optimization
final static vs non-final static variable?
final and static in Java
1
stackoverflowdupquestions
Using JInternalFrame and some button
How to get a JInternalFrame in the order i add it
passing values from one jInternalFrame to another jInternalFrame
1
stackoverflowdupquestions
unexpected exception: java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
log4j2 java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager
Upgrading to Log4J2 facing exception. [Java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager]
1
stackoverflowdupquestions
Felix OSGI Embedded application issue
How to start and use Apache Felix from code?
OSGi (felix) ignores OSGI-INF
1
stackoverflowdupquestions
A strange behavior from java.util.Calendar on February
February in Java Calendar
Different behavior of Calendar class in Java and Android
1
stackoverflowdupquestions
How to close a spring ApplicationContext?
Closing a Spring ApplicationContext
No XML Spring ApplicationContext
1
stackoverflowdupquestions
How to get SQL from Hibernate Criteria API (*not* for logging)
Getting SQL from Criteria
Hibernate Criteria for list
1
stackoverflowdupquestions
Using wild card to limit data input from a certain package
When to use generic methods and when to use wild-card?
Wild Card Searching a file system folder in Java
1
stackoverflowdupquestions
Difference between using StringTokenizer and String.split( )?
What is StringTokenizer in Java
StringTokenizer - first string?
1
stackoverflowdupquestions
How do I use BlueCove to use Bluetooth on a MacBook with Java?
Native library bluecove not available on Mac
Does bluecove work with Linux 64 bits?
1
stackoverflowdupquestions
Block entire swing ui except for one component - "dialog style"
Whiteout entire swing GUI except from one component
Name of this Java Swing component?
1
stackoverflowdupquestions
Jackson @JsonProperty(required=true) doesn't throw an exception
Jackson - Required property?
@JsonProperty Json object inside Json object
1
stackoverflowdupquestions
How to send SMS in Java
send sms from web application
SMS in a list view
1
stackoverflowdupquestions
unmappable character for encoding warning in Java
Java, Ant error: unmappable character for encoding Cp1252
Unmappable character for encoding ASCII but my files are in UTF-8
1
stackoverflowdupquestions
weblogic.application.ModuleException: Context path '' is already in use by the module: / application:
Weblogic 12.1.3 context path already in use by the module error
Where will WebLogic look for files by default?
1
stackoverflowdupquestions
Sherlock and The Beast
Sherlock and The beast - issue
Switch-Case using quote (')
1
stackoverflowdupquestions
Bean introspection in Java
Java introspection and reflection
Java introspection: object to map
1
stackoverflowdupquestions
Method argument extends class implements interface
Declare an attribute that both extends a class and implements an interface
extends class and implements interface in java
1
stackoverflowdupquestions
Selection does not contain any Java files from eclipse
Error: Selection does not contain a main type
JComboxBox selection
1
stackoverflowdupquestions
What are the go-to data structures in Java?
Java Data Structures Reference
Create linked data structures from array
1
stackoverflowdupquestions
Golf Score Tally Program Java - Stuck
Getting Golf scores into an array
How to integrate Java with Tally application
1
stackoverflowdupquestions
How do I make JFileChooser open in the current directory the user is in?
How to open directly a directory(location) with JFileChooser?
Getting the working directory with JFileChooser
1
stackoverflowdupquestions
Java Method Overloading with Boxing/Widening
overloading with both widening and boxing
Why does the char type not feature on Java's "widening path"?
1
stackoverflowdupquestions
How do i declare and read values into integer values?
How to Declare and read values into integer variables?
Declare array in java
1
stackoverflowdupquestions
FileInputStream doesn't work with the relative path
How to set file path for FileInputStream?
How to set the file path for fileInputStream in eclipse
1
stackoverflowdupquestions
JodaTime equivalent of DateUtils.truncate()
which timezone is used by DateUtils?
Using DateTimeConstants(JodaTime) value to store dayOfTheWeek in database?
1
stackoverflowdupquestions
Example for a correctly synchronized program with data races in Java memory model
What's "sequentially consistent executions are free of data races"?
implementing remove on a ConcurrentMultimap without races
1
stackoverflowdupquestions
How to configure Jackson to deserialize List containing named types annotated on Base Class with @JsonTypeInfo and JsonSubTypes?
How to configure Jackson to deserialize named types with default typing?
Is Jackson's @JsonSubTypes still necessary for polymorphic deserialization?
1
stackoverflowdupquestions
Validate every field in a single pass with SuperCSV
adding the error line in log when SuperCSV fails
Handle columns with NULL values with SuperCSV
1
stackoverflowdupquestions
Resume http file download in java
how to resume an interrupted download - part 2
Regular expression for resume content
1
stackoverflowdupquestions
Hundreds of RegEx on one string
Hundreds of RegEx on one string
Refactoring a Java project causes hundreds of "X not public" errors
1
stackoverflowdupquestions
Get rid of JAXBElement in classes generated by wsimport called from ant
How do I prevent JAXBElement<String> from being generated in a CXF Web Service client?
What does List<JAXBElement<? extends SomeClassName>> mean?
1
stackoverflowdupquestions
Is there a Java function which parses escaped characters?
Parsing a string containing escaped characters using Java
Why I can't access my escaped URL?
1
stackoverflowdupquestions
Does Jackson TypeReference work when extended?
Jackson TypeReference using inner class
Java class not found in Jackson
1
stackoverflowdupquestions
indexOf in a string array
Where is Java's Array indexOf?
how do i check the data in an array with indexOf in java
1
stackoverflowdupquestions
profiling the jvm where most garbage is generated and what type it has, escape analysis optimization
Profiling number of garbage-collected object instances per class
Java profiling - how can I get a method by method analysis of my application?
1
stackoverflowdupquestions
ant build.xml file doesn't exist
ant build.xml does not exist. Build failed
Ant build doesn't make jar file
1
stackoverflowdupquestions
wrong output of CRC32 in android
CRC32 in Java different from pycrc
Is there any difference in calculating CRC32 checksum in C# and Java?
1
stackoverflowdupquestions
Java - Write hashmap to a csv file
How to write HashMap to CSV?
Writing values of a hashmap<String,String[]> as a csv file in java
1
stackoverflowdupquestions
Short IF - ELSE statement
Short if statement usage
Error in if else statement
1
stackoverflowdupquestions
Convert Array to Queue
Convert queue into long array?
Why the elements in the queue are the same
1
stackoverflowdupquestions
Configure DataSource programmatically in Spring Boot
Dynamic datasource as second datasource in Spring Boot + Hibernate
Spring Boot jdbcAuthentication dataSource not loaded error
1
stackoverflowdupquestions
How can you find what URL was used in log4j default initialization?
How to Re-Execute Log4j "Default Initialization Procedure"?
Log4j 2 doesn't write to file
1
stackoverflowdupquestions
Illegal access: this web application instance has been stopped already
web instance already stopped
Illegal start of type error
1
stackoverflowdupquestions
How to delete Child or Parent objects from Relationship?
In Many to One Relationship how to delete child objects
Hibernate: Parent/Child relationship in a single-table
1
stackoverflowdupquestions
Javac: Treat warnings as errors
Eclipse (Java): Central "treat warnings as errors"
-version with java and javac
1
stackoverflowdupquestions
java mail as pdf files as attachment
Send e-mail in Pdf attachment as stream
Send basic email with file (e.g. PDF) attachment
1
stackoverflowdupquestions
Why is equals() not called while adding to HashSet and hashCode matches?
hashcode() and equals() method
How to make HashSet<T> invoking T.equals(Object ) when HashSet.add() is called
1
stackoverflowdupquestions
Java IO inputstream blocks while reading standard output & standard error of an external C program
Java reading standard output from an external program using inputstream
Where to find the code of a standard Java class?
1
stackoverflowdupquestions
Java I/O: How to append to an already existing text file
append to existing xml file
Add new method to existing class
1
stackoverflowdupquestions
Java generating non-repeating random numbers
Non-repeating random numbers inside array JAVA
Trying to Print Array without Repeating Numbers
1
stackoverflowdupquestions
str_pad implemented in Java
How can I pad a String in Java?
How can I left-pad the string representation of a float?
1
stackoverflowdupquestions
How can a JVM be written in Java
Why jvm is written in c++, any specific reason.?
JVM getObjectSize example
1
stackoverflowdupquestions
Best Java Collection to store key, value pairs and access its objects by Index or by key name
key-value pairs collection maintaining order and retrieving by key and by pair index?
How to search a string of key/value pairs in Java
1
stackoverflowdupquestions
How to match the color models of BufferedImage and Mat?
Converting BufferedImage to Mat in opencv
Changing the color of a BufferedImage
1
stackoverflowdupquestions
Replace ASCII codes in Java string with character equivalents
Replace non ASCII character from string
PushbackReader Equivalents
1
stackoverflowdupquestions