query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
How to assign bean's property an Enum value in Spring config file?
How to use java enum as bean in spring
How to get the property value inside a spring bean class in my class ?
1
stackoverflowdupquestions
Heterogeneous container to store genericly typed objects in Java
Type safe heterogeneous container pattern to store lists of items
Tuple (unmodifiable ordered list of heterogeneous elements) support in Java
1
stackoverflowdupquestions
(Entity-Control-Boundary pattern) -> How to deal with two entities?
ECB pattern - what is really a boundary?
how to deal with entities that don't need @id annotations
1
stackoverflowdupquestions
Java generics: get class of generic method's return type
Java generics: how to get a generic type from a method?
Generics - Calling a method with a generic parameter
1
stackoverflowdupquestions
Converting char[] to byte[]
Converting char array into byte array and back again
Converting String to Char array in JAVA
1
stackoverflowdupquestions
Horizontal Scrolling + JTable + Java
JTable with horizontal scrollbar
JavaFX 8 Tableview with horizontal scrolling
1
stackoverflowdupquestions
Strikethrough for entire row in jtable
How to strikethrough text of a selected row(having checkbox in first column) of JTable?
How to copy one row from JTable into another JTable
1
stackoverflowdupquestions
Retrieve current week's Monday's date
Java - get Monday date of a week give a date in that week
How to return all date of week
1
stackoverflowdupquestions
Spring MVC + Hibernate: data validation strategies
Spring MVC: How to perform validation?
Spring MVC 3 and validation error
1
stackoverflowdupquestions
Starting external process during integration testing in maven
Integration testing environment set up with Maven with not embedable dependency
Java Python Integration
1
stackoverflowdupquestions
JTA Datasource java configuration in spring
Configuring a JTA datasource for JBoss 8 (WildFly)
Spring dataSource return null
1
stackoverflowdupquestions
Good hashCode() Implementation
Use String hashCode() Method?
String.hashCode in Java
1
stackoverflowdupquestions
Why does Java's concat() method not do anything?
String concat in java
How to concat an object name as part of a file path?
1
stackoverflowdupquestions
Programmatically Obtain KeyStore from PEM
How to build a SSLSocketFactory from PEM certificate and key without converting to keystore?
Java Keystore in project
1
stackoverflowdupquestions
How to print multiple header lines with MessageFormat using a JTable
MessageFormat header/footerFormat how to change Font for JTable printing
MessageFormat formatting pattern Query
1
stackoverflowdupquestions
Not getting currency symbols for specific Locale
Currency code to currency symbol mapping
Format currency without currency symbol
1
stackoverflowdupquestions
How to run Spring 3.0 PetClinic in tomcat with Hibernate backed JPA
How to use JPA in spring sample petclinic?
Spring + Hibernate + JPA
1
stackoverflowdupquestions
How to print a cheque through the receipt printer in Java?
How to print a cheque through the receipt printer in Java?
Increment the value of a receipt number
1
stackoverflowdupquestions
Import PFX file into Existing JKS file (NOT converting from .pfx to .jks)
How to convert .pfx file to keystore with private key?
Reading back ECPrivateKey from JKS KeyStore
1
stackoverflowdupquestions
Faster alternatives to Java's reflection
Invoking instance method through Java Reflection/Scala Reflection: Which one is faster?
Error in Reflection
1
stackoverflowdupquestions
CXF - ClassCastException (SEIStub/ClientProxy)
CXF - ClassCastException (SEIStub/ClientProxy) for webstart
Why can't i have classcastexception?
1
stackoverflowdupquestions
ECMA TypeError calling Java class from Worklight adapter
Worklight Studio and Local Development, sometimes unable to use Java classes, sometimes the HTML files
Does my adapter work?
1
stackoverflowdupquestions
IPv6 validation
Open source IPv6 Java validation
Java API to convert IPv6 from one format to another format
1
stackoverflowdupquestions
How do I properly configure an EntityManager in a jersey / hk2 application?
Injecting hibernate session to Jersey using HK2
Testing Jersey app, Injecting classes using Jersey Injection built-in framework (HK2)
1
stackoverflowdupquestions
Running ant-target to send a mail via java
ant mail task using mail and activation jar in external location
Add an ant target to run a class from within a jar file
1
stackoverflowdupquestions
What is the best way to do Java development in Emacs?
emacs jruby config -- using java
How do you run Java codes in emacs?
1
stackoverflowdupquestions
Design Pattern to Avoid Abstract Static Methods (or Overriding a Static Method)
How to resolve abstract static method design issue?
How can I implement abstract static methods in Java?
1
stackoverflowdupquestions
How to inject dependencies into a self-instantiated object in Spring?
How to inject dependencies when doing Object object = new Object()
How do i check a class is instantiated in JAVA
1
stackoverflowdupquestions
Java class name containing dollar sign fails to compile if an inner class is present
When should I use the dollar symbol ($) in a variable name?
Dollar sign in visualvm
1
stackoverflowdupquestions
When are strings different objects in Java?
Strings are objects in Java, so why don't we use 'new' to create them?
java List of Strings to Array of Strings
1
stackoverflowdupquestions
How to do a call through a javax.xml.ws.Service
How to use javax.xml.ws without interface of soap webService
Failed to create service exception javax.xml.ws.WebServiceException:
1
stackoverflowdupquestions
How to use dagger in a android library project
How can I build a Dagger-based Android library without forcing consuming applications to use Dagger?
Android Dagger error cannot find symbol class DaggerDashboardComponent
1
stackoverflowdupquestions
Enum.valueOf throws a warning for unknown type of class that extends Enum?
Calling Enum.<T>valueOf() giving unchecked cast warning, despite T being declared <T extends Enum<T>>
generic Enum.valueOf method : Enum class in parameter and return Enum item
1
stackoverflowdupquestions
Why does a private base class constructor result in "Implicit super constructor is not visible"
How to resolve 'Implicit super constructor classA() is not visible. Must explicitly invoke another constructor'?
The constructor file(string) is not visible
1
stackoverflowdupquestions
HTMLUnit doesn't wait for Javascript
HTMLUnit doesn't wait for Javascript 2
JavaScript not being properly executed in HtmlUnit
1
stackoverflowdupquestions
When to use phantom references in Java?
What is phantom reference in java
Not able to load https url when using selenium webdriver + phantom
1
stackoverflowdupquestions
Java static nested class vs top level class
Modularity in Java: top level vs. nested classes
FacesUtil.getComponentFor vs. ExtLibUtil.getComponentFor
1
stackoverflowdupquestions
Java: Encode String in quoted-printable
Unknown encoding quoted/printable while reading email with Java mail API
JAVA using Printable print method
1
stackoverflowdupquestions
Bad idea to chain exceptions with RMI?
RMI and exceptions
Return a string with Java RMI
1
stackoverflowdupquestions
Spring AOP point cut for 'nested' annotation
Spring AOP: @annotation(annotation)
Get method arguments using Spring AOP?
1
stackoverflowdupquestions
How to trim a java stringbuilder?
How to trim StringBuilder's string?
Why StringBuilder when there is String?
1
stackoverflowdupquestions
Best practice for Java IPC
What is the best way for IPC in java?
Java tryParseInt best practice
1
stackoverflowdupquestions
Spring Boot: Cannot access REST Controller on localhost (404)
404-not-found-while-running-spring-boot-rest-api
404 error on main controller when using spring boot
1
stackoverflowdupquestions
How to set an env variable in Glassfish 2.1
Where to set system variable for application running in glassfish 4
Glassfish + Spring
1
stackoverflowdupquestions
What is the use of Pattern.quote method?
Difference between Pattern.quote() and its String concatenation equivalent?
SQL query in java with single quote
1
stackoverflowdupquestions
How to reduce the memory usage of Appstats on Google App Engine Java
Java Appengine APPSTATS causing java out of memory error
google app engine HardDeadlineExceededError
1
stackoverflowdupquestions
What is the difference between OCI and THIN driver connection with data source connection between java and oracle XE?
Oracle thin driver vs. OCI driver. Pros and Cons?
How to use SSL with Oracle thin driver?
1
stackoverflowdupquestions
Synchronizing access to SimpleDateFormat
Synchronizing on SimpleDateFormat vs. clone
Synchronizing two methods in Java
1
stackoverflowdupquestions
Need to process multiple files in parallel in Spring Integration
how to process in parallel and synchronously in spring integration?
Issue with DataHub in spring-integration
1
stackoverflowdupquestions
Is there something like LINQ for Java?
LINQ for Java tool
Quaere - Anyone using it yet? (LINQ to Objects for Java)
1
stackoverflowdupquestions
How to round up integer division and have int result in Java?
How to round up the result of integer division?
How do you round of this
1
stackoverflowdupquestions
Change colors for JProgressBar with Nimbus?
How to change the color of a single JProgressBar in Nimbus?
JProgressBar won't update
1
stackoverflowdupquestions
FtpClient storeFile always return False
FTPS storeFile return always false Java
upload progress in FTPClient
1
stackoverflowdupquestions
Sending an object through a socket in java
Java object sending error in socket application
Java, problem sending a message with socket connection
1
stackoverflowdupquestions
Increment existing date by 1 day
How can i increment my date by 1
Increment time in date variable
1
stackoverflowdupquestions
How to Debug Java Application using VIM/GVIM?
Any good tutorial for moving from eclipse to vim?
Tips for using Vim as a Java IDE?
1
stackoverflowdupquestions
Where can I find the jnlp api jar in jdk 7?
Where can i download JNLP.jar
Web-start exception JNLP
1
stackoverflowdupquestions
find closest point from users coordinates
Closest point of a set to a given point
closest thing to NSScanner in Java
1
stackoverflowdupquestions
Can't debug servlet Eclipse + Glassfish
How do I debug GlassFish 3 using Eclipse Helios?
Filter servlet not working with glassfish in netbeans
1
stackoverflowdupquestions
Java - comma operator outside for loop declaration
Do {} while ( , ) with comma operator, is that even possible?
Is comma (,) operator or separator in Java?
1
stackoverflowdupquestions
jni.h: no such file or directory
fatal error: jni.h: No such file or directory
How to create an object with JNI?
1
stackoverflowdupquestions
Is it possible to specify where JVM's crash dumps go?
how to set location of jvm crash log files
What is the standard parallel GC called in JVM crash dumps?
1
stackoverflowdupquestions
Execution of JMS message listener failed, and no ErrorHandler has been set
Spring JMS : Set ErrorHandler for @JmsListener annotated method
What is Java Message Service (JMS) for?
1
stackoverflowdupquestions
Which of the two APIs, openConnection() or connect(), actually opens a connection?
Difference between URL.openConnection() and URLConnection.connect()?
File opens before printing?
1
stackoverflowdupquestions
Why does Eclipse consider that the app engine sdk jar is the directory where the app engine SDK is?
The selected App Engine SDK is not valid
Why does Eclipse not work with Android SDK?
1
stackoverflowdupquestions
Where can i download JNLP.jar
Can't find jnlp.jar in JDK 1.7
starts from jnlp but not from dtjava
1
stackoverflowdupquestions
Runtime.maxMemory() and -Xmx
How to detect real value of -Xmx param? Runtime.getRuntime().maxMemory() is not accurate
java xmx option not recognised
1
stackoverflowdupquestions
How to make a splash screen for GUI?
Activity after splash screen
Why is my splash screen not showing up?
1
stackoverflowdupquestions
solrj: how to store and retrieve List<POJO> via multivalued field in index
Inserting a POJO tree using SOLRJ
Solrj: getting MoreLikeThis as beans
1
stackoverflowdupquestions
How does the detached object work in hibernate
Hibernate why are my objects becoming detached?
hibernate detached criteria with join table
1
stackoverflowdupquestions
Calendar returns date in wrong time zone
Why is Calendar returning the wrong hour with the correct time-zone?
how to set default time zone to a different time zone than that of your system and store the date
1
stackoverflowdupquestions
What does the JVM do with a final variable in a class?
Handling of `final` by the JVM
Java final variable in a function
1
stackoverflowdupquestions
Will JUnit ever run test in parallel?
Running junit tests in parallel in a Maven build?
My Junit test doesn't run
1
stackoverflowdupquestions
Getting only email address to display when using message.getFrom() in JavaMail
indexes Message.getFrom () and its function
JavaMail API error
1
stackoverflowdupquestions
How to set environment variable or system property in spring tests?
Set System Property With Spring Configuration File
Set/Get Environment Variable from Java
1
stackoverflowdupquestions
How to interrupt ExecutorService's threads
Is it possible to interrupt a specific thread of an ExecutorService?
Interrupt a thread in java
1
stackoverflowdupquestions
JTable drag and drop
How do I drag and drop a row in a JTable?
How to swap value of cell in jtable by drag and drop
1
stackoverflowdupquestions
Ubuntu: JAVA_HOME is not defined correctly
Error: JAVA_HOME is not defined correctly executing maven
Install JAVA 8 in home directory Ubuntu
1
stackoverflowdupquestions
Unsigned applet socket JavaScript
Socket connection to originating server of an unsigned Java applet
Calling JavaObjects in JavaScript to Applet
1
stackoverflowdupquestions
Springboot @ServerEndPoint "Failed to find the root WebApplicationContext."
@ServerEndpoint and @Autowired
@ServerEndpoint can be an EJB but can not be plain CDI bean?
1
stackoverflowdupquestions
Editing PDF text using Java
Inline text editing within a PDF file
Editing content in pdf using PDFBox removes last line from pdf
1
stackoverflowdupquestions
Check if letters that a word consists of are present in another string
Java: Determining if a word contains letters that can be found in another word?
Values from letters in Java
1
stackoverflowdupquestions
JSch doesn't provide output when called a 2nd time
How to read JSch command output?
Is it possible to add ControlMaster to a JSch connection?
1
stackoverflowdupquestions
How to restrict more than one whitespace in Java Regex?
Whitespace Matching Regex - Java
java restrict List items
1
stackoverflowdupquestions
Java EE Architecture - Are DAO's still recommended when using an ORM like JPA 2?
Using JSF, JPA and DAO. Without Spring?
Hibernate/JPA : How to do the query that return the attribute of the DAO?
1
stackoverflowdupquestions
How to set the DPI of Java Swing apps on Windows/Linux?
Java Swing on high-DPI screen
How to get correct DPI of display with Java, when user change the screen resolution on Windows settings?
1
stackoverflowdupquestions
How to update/refresh a view in an eclipse plug-in?
How to Refresh Eclipse View Plugin
Eclipse Plug-in development. Can i use an already existing jar file with my plug in?
1
stackoverflowdupquestions
java.util.zip.deflater equivalent in c#
How to decompress stream deflated with java.util.zip.Deflater in .NET?
Losing bytes when using Cipher combined with Deflater/Inflater
1
stackoverflowdupquestions
Hashmap vs Array performance
HashMap vs array performance difference in following approach
Class VS HashMap for more than 50 fields from file
1
stackoverflowdupquestions
Rendering javax.swing.JButton in a lwjgl window
Java swing gui and lwjgl
LWJGL 3 - where to start?
1
stackoverflowdupquestions
How to set font color for selected text in jTextArea?
How to set bold font style for selected text in JTextArea instance
setting the font name, style and size for the jtextarea
1
stackoverflowdupquestions
Java JVMTI doesn't work alongside -Xdebug -Xrunjdwp
How to debug a java app that uses a JVMTI agent to set breakpoint (Unable to get necessary JVMTI capabilities)
JVMTI profiling: calculating the amount of stack memory
1
stackoverflowdupquestions
How do I redirect System.out, System.err to the log file
Redirect System.out and System.err to slf4j
Redirect the output of System.err.println to a file without code change
1
stackoverflowdupquestions
Renaming a lot of variables in many Java classes at once
mass renaming of java variables
Renaming video files with a Java program
1
stackoverflowdupquestions
50 MB increase in memory consumption on displaying an Image
High memory consumption by an Image
Memory consumption issues of a Java program
1
stackoverflowdupquestions
Using "this" keyword with a Constructor - how does "this" refer to to the Point object?
Using the keyword "this" in java
Using the "new" keyword (Java)
1
stackoverflowdupquestions
What is the best solution to perform scheduled tasks in Java, whatever the OS?
Accessing windows scheduled tasks in Java
Developing Scheduled tasks in Java and running on Linux server
1
stackoverflowdupquestions
Malicious code vulnerability - May expose internal representation by returning reference to mutable object
Malicious code vulnerability - May expose internal representation by returning reference to mutable object - With what objects?
Java String internal representation
1
stackoverflowdupquestions
cURL request in Java with XGET argument
How do i do the following curl command in Java
Error while running curl command through java
1
stackoverflowdupquestions
Difference between parseInt and valueOf in java?
Which one is faster? Integer.valueOf(String string) or Integer.parseInt(String string)?
How to use Version method 'valueOf(String)'
1
stackoverflowdupquestions