query
stringlengths
1
74.9k
positive
stringlengths
0
174k
negative
stringlengths
1
174k
label
float64
1
1
task_name
stringclasses
33 values
how to get size of file in mb?
Format file size as MB, GB etc
Sending 1 MB Buffer of data over Socket in Android
1
stackoverflowdupquestions
JProgressBar without JButton and PropertyChangeListener
JProgressBar not working properly
Update JProgressBar from new Thread
1
stackoverflowdupquestions
How to print the extended ASCII code in java from integer value
JAVA extended ASCII table usage
How to use an extended class to create an instance?
1
stackoverflowdupquestions
InetAddress.getByName on Android
How to get IPAddress using InetAddress in Android
Is there an easy way to convert String to Inetaddress in Java?
1
stackoverflowdupquestions
Jackson ignore all properties of superclass from external library
Jackson serialization: how to ignore superclass properties
Jackson ignore properties using the same class
1
stackoverflowdupquestions
Using JNDI to share servlet session objects and data in Tomcat
Common JNDI resources in Tomcat
Tomcat JNDI: managed stack of objects
1
stackoverflowdupquestions
BeanNotOfRequiredTypeException due to autowired fields
Fixing BeanNotOfRequiredTypeException on Spring proxy cast on a non-singleton bean?
still having You can't operate on a closed ResultSet error after using connection pool
1
stackoverflowdupquestions
Object.finalize() not output
When is the finalize() method called in Java?
Why calling super.finalize() is preferred when overriding finalize() method?
1
stackoverflowdupquestions
how to make jni.h be found?
jni.h: No such file or directory
How to return an array in JNI?
1
stackoverflowdupquestions
AES-NI intrinsics enabled by default?
Does Java use AES-NI when available?
Android AES issue
1
stackoverflowdupquestions
Problems Resteasy 3.09 CorsFilter
Cannot access services after adding corsfilter in resteasy
RESTeasy and X-HTTP-Method-Override
1
stackoverflowdupquestions
Iterating over arrays by reflection
How to write arrays to XML file using Java reflection?
What is the problem with Reflection?
1
stackoverflowdupquestions
Could not find or load main class when running through command line
Error: Could not find or load main class
Error: Could not find or load main class JDBCExample
1
stackoverflowdupquestions
JPA and Hibernate - Criteria vs. JPQL or HQL
What to use: JPQL or Criteria API?
Hibernate: How do I rewrite this criteria to HQL?
1
stackoverflowdupquestions
Does hashcode number represent the memory address?
Java Object.hashCode() - address or random()?
Why are this == other and and this.hashcode == other.hashcode() giving different results?
1
stackoverflowdupquestions
How to find the jar of java.rmi package
Using JAVA RMI in Android application
import/package issue with RMI
1
stackoverflowdupquestions
How do the Proxy, Decorator, Adapter, and Bridge Patterns differ?
Differences between Proxy and Decorator Pattern
Java to C++ bridge?
1
stackoverflowdupquestions
Handling of `final` by the JVM
What does the JVM do with a final variable in a class?
File handling in java
1
stackoverflowdupquestions
How to directly initialize a HashMap (in a literal way)?
Java - instantiate a hashmap from literal value pairs
ConcurentModificationException in Java HashMap
1
stackoverflowdupquestions
SWT-Browser: How to load a resource using HTTPS if the certificate is untrusted?
How to import a SSL certificate file with SWT Browser
Find browser type/version of SWT Browser
1
stackoverflowdupquestions
How to tell the diffarences of installed java - JDK or JRE
What is the difference between JDK and JRE?
What happen to my pre-installed JRE when I download a JDK?
1
stackoverflowdupquestions
Live video streaming between Server and client - Using Java
Best way to live stream video from java server to android client?
How can I code a server/client video and audio streaming application?
1
stackoverflowdupquestions
Difference between java and javaw
Difference between java.exe and javaw.exe
Determine is application has been started via Java or Javaw?
1
stackoverflowdupquestions
Is there a way to check if two Collections contain the same elements, independent of order?
Way to check if two Collections contain the same elements, independent of order?
XML inside an string element vs independent elements
1
stackoverflowdupquestions
Simple way to compare 2 ArrayLists
Compare two different ArrayLists for matching element
Objects and ArrayLists
1
stackoverflowdupquestions
Difference between break and continue statement
Continue statement works but break statement doesn't work the way it should
Won't this just break out of the if statement?
1
stackoverflowdupquestions
Object class as super class in Java
super-constructor if there is no super class?
How it works super() and super. in Java
1
stackoverflowdupquestions
How to use a class customization to resolve file generating conflicts
How to use a class customization to resolve conflict when generating jaxb object from xsd
Gradle war customization - folder name
1
stackoverflowdupquestions
Unable to parse DateTime-string with AM/PM marker
Unable to parse AM/PM using SimpleDateFormat
get datetime with AM or PM in java
1
stackoverflowdupquestions
JSoup 1.6.0 on Android throws Exception: String.isEmpty() NoSuchMethodExists
Java isEmpty() undefined for String?
Android using JSOUP for HTML
1
stackoverflowdupquestions
Signed Java Applet gives AccessControlException when calling from JavaScript
signed applet gives AccessControlException: access denied, when calling from javascript
AccessControlException in doPriveledge
1
stackoverflowdupquestions
How to tell if a random string is an email address or something else
What is the best Java email address validation method?
Email method not working
1
stackoverflowdupquestions
how can I convert unicode string to ASCII in java
Convert Unicode to ASCII without changing the string length (in Java)
How to convert ASCII to int?
1
stackoverflowdupquestions
how do I add threads or pools to avoid ConnectException: Connection refused?
Multiple sockets cause ConnectException: Connection refused: connect
Trying to test connection on localhost ports using Socket and get ConnectException
1
stackoverflowdupquestions
Ambiguous mapping found when one @Controller extends another @Controller
Ambiguous mapping found when I use extends clause
Spring controller regex mapping
1
stackoverflowdupquestions
Convert String to java.util.Date
I am getting date as String from jsp page how to convert it in to java.util.Date
How can I convert an Integer (e.g 19000101 ) to java.util.Date?
1
stackoverflowdupquestions
How to host a Java web service in IIS
Web service in java using IIS
IIS hosted WCF Service to provide client cert
1
stackoverflowdupquestions
Eclipse JFace's Wizards
Eclipse JFace's Wizards (Again ...)
Eclipse cannot find the main class in JFace?
1
stackoverflowdupquestions
Java Record Mic to Byte Array and Play sound
java byte array play sound
How can I play sound in Java?
1
stackoverflowdupquestions
Ant build failing, "[javac] javac: invalid target release: 7"
Ant Javac and Commandline Javac give different results
Netbeans Maven Error: javac: invalid target release: 1.7
1
stackoverflowdupquestions
Can you save java.util.Date to DATE in SQL?
java.util.Date vs java.sql.Date
Error java.util.Date
1
stackoverflowdupquestions
How to get getclass().getResource() from a static context?
How to call getClass() from a static method in Java?
sysLoader.getResource() problem in java
1
stackoverflowdupquestions
Setting Arabic numbering system locale doesn't show Arabic numbers
Use arabic letters with arabic numbers
how to perform search on Arabic text in JAVA?
1
stackoverflowdupquestions
How does the JVM ensure that System.identityHashCode() will never change?
Does Object class default implementation of hashcode uses identityhashcode
How can I get Syslogging to work on the JVM?
1
stackoverflowdupquestions
How to add support for resizing when using an undecorated JFrame?
Drag and Resize undecorated JFrame
Java undecorated jFrame not working on Windows
1
stackoverflowdupquestions
Eclipse on Mac 10.8 - Installed 1.7.0 JRE / JDK, but Eclipse won't launch
How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?
Eclipse for C++ (Mac OSX): Do I need JRE or JDK?
1
stackoverflowdupquestions
How to write response filter?
Adding header in response in filter?
Filter a list in Java
1
stackoverflowdupquestions
Why does Map not extend Collection interface
Java collection not have Map as part of collection framework
Why is a Map not a "true" collection?
1
stackoverflowdupquestions
How to copy resultset into object?
Java ResultSet copy to generic object or list
Any way to return a ResultSet in Java?
1
stackoverflowdupquestions
Returning time in minutes
Difference between minutes
Method is not returning String?
1
stackoverflowdupquestions
Why const keyword is not used in Java?
In Java, when do you use const instead of final?
Java: equivalent to C++ const method
1
stackoverflowdupquestions
Android FragmentManager BackStackRecord.run throwing NullPointerException
NullPointerException in FragmentManager
Why am I throwing a NullPointerException
1
stackoverflowdupquestions
SwingWorker exceptions lost even when using wrapper classes
How should I handle exceptions when using SwingWorker?
where SwingWorker should be in the class
1
stackoverflowdupquestions
Convert from java.util.date to JodaTime
How to convert from java.util.date to JodaTime and get same date
Convert date to other format in JodaTime
1
stackoverflowdupquestions
what do the square brackets mean? in Java
Difference between String[] (with square brackets) and String (without square brackets) in Java
How do you print the value of an int inside square brackets in Java?
1
stackoverflowdupquestions
Avoiding memory leak in JNI C to/from Java
Memory leak when calling java code from C using JNI
Possible Memory Leak?
1
stackoverflowdupquestions
Multiple properties files
Multiple .properties files in a Java project
Multiple properties file in spring
1
stackoverflowdupquestions
Clicking Past a Transparent Frame (Java)
A transparent JFrame that is always on top, but allows clicking underneath
Transparent Frame works correctly in Windows, but not in Linux
1
stackoverflowdupquestions
Java Enums and Switch Statements - the default case?
Java Enums - Switch statements vs Visitor Pattern on Enums - Performance benefits?
Enums,use in switch case
1
stackoverflowdupquestions
Java: check symbolic link file existence
Java 1.6 - determine symbolic links
Copying symbolic link for different OS's in java
1
stackoverflowdupquestions
Create a mutable java.lang.String
Is there some way to pass a String to a method as mutable?
Is java.util.List mutable?
1
stackoverflowdupquestions
Android: HTTPS (SSL) connection using HttpsURLConnection
Android HttpsURLConnection Problems
set methods aren't working for HttpsURLConnection
1
stackoverflowdupquestions
Generating a MD5 hash from a char[]
Generating an MD5 Hash with a char[]
Java test for MD5 using a file
1
stackoverflowdupquestions
In Java, How to detect if a string is unicode escaped
How do I detect unicode characters in a Java string?
Java: How's the loop for reading escaped?
1
stackoverflowdupquestions
Java Delegates?
Are there delegates in Java 8?
What is the correct term for an implementation of an interface that delegates method calls to a collection of the same interface?
1
stackoverflowdupquestions
Java : create jar executable with dependant jars embedded
Java Jar Combining several jars into one executable Jar
Find jars in a jar
1
stackoverflowdupquestions
How to append existing line in text file
How to add a new line of text to an existing file in Java?
Main-Class can't be set to existing class
1
stackoverflowdupquestions
Java: Extending Class At Runtime
Extending class at runtime
problem with extending classes
1
stackoverflowdupquestions
Type mismatch Error : Cannont convert from ArrayList<SubClass1> to List<SuperClass>
Reason of Type mismatch Error : convert ArrayList<SubClass1> to List<SuperClass>?
Convert ArrayList<subclass> to ArrayList<superclass>
1
stackoverflowdupquestions
ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource
DataSource or ConnectionPoolDataSource for Application Server JDBC resources
Hibernate using an instance of javax.sql.DataSource
1
stackoverflowdupquestions
ExecutorService slow multi thread performance
Java's ExecutorService performance
How to add a variable to an ArrayList inside an ExecutorService thread
1
stackoverflowdupquestions
several requests from one HttpURLConnection
HttpURLConnection implementation
Java HttpURLConnection VS Android HttpURLConnection
1
stackoverflowdupquestions
Volatile keyword in Java - Clarification
What is the volatile keyword useful for
Why make a method volatile in java?
1
stackoverflowdupquestions
how to write an array to a file Java
How do I write an array to a file?
how to write an array by using write() in file
1
stackoverflowdupquestions
How to get frequency from fft result?
Using gdx Library and FFT to Calculate Frequency (Java)
How to get magnitude and corresponding frequency after FFT
1
stackoverflowdupquestions
Hibernate or EclipseLink for JPA?
Hibernate vs EclipseLink
JPA - EclipseLink - How to change default schema
1
stackoverflowdupquestions
How to control the MIDI channel's volume
What's the method to control volume in an MIDI sequencer?
How to detect specific MIDI controller in Java MIDI?
1
stackoverflowdupquestions
UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define
Unable to execute dex: Multiple dex files define
Android jar/dex method count on windows
1
stackoverflowdupquestions
How to read Pipe delimited Line | from a File and Splitting Integers in two different ArrayList
Java Null value causing issue when reading a pipe delimited file
Get length of delimited string in java?
1
stackoverflowdupquestions
java.lang.IllegalMonitorStateException: object not locked by thread before wait()?
Java Wait and Notify: IllegalMonitorStateException
This Code can Throw an IllegalMonitorStateException
1
stackoverflowdupquestions
How to split pdf file by result in java pdfbox
How to split a PDF using Apache PDFBox?
PDFBox: How to print a range of pages from a PDF
1
stackoverflowdupquestions
JTextPane is not wrapping text
Strange text wrapping with styled text in JTextPane with Java 7
JtextPane of one Line
1
stackoverflowdupquestions
Why it says that "Cannot refer to a non-final variable i inside an inner class defined in a different method"?
Java - Cannot refer to a non-final variable
Using the non-final variable in inner-class
1
stackoverflowdupquestions
How can I reduce the Cyclomatic Complexity of this?
How to remove The Cyclomatic Complexity
Reducing Cyclomatic Complexity with an interval
1
stackoverflowdupquestions
JWT is issuing the same token
How to properly handle a JWT refresh?
JWT auth from android apps
1
stackoverflowdupquestions
How to check the state of an JCheckBox?
How to check that a JCheckBox is checked?
Java JCheckBox ArrayList help needed
1
stackoverflowdupquestions
Ldap search by email value can't find records
How do a LDAP search/authenticate against this LDAP in Java
Can not add user to a group with Ldap in Java
1
stackoverflowdupquestions
unexpected end of subtree exception after Hibernate version update on delete query
Hibernate Delete query
Using a recursive method to find the smallest element in a subtree given the root: what am I doing wrong here?
1
stackoverflowdupquestions
Difference between minutes
Returning time in minutes
Difference, in minutes, between two dates
1
stackoverflowdupquestions
Remove border from JComboBox
Not Editable JComboBox Border
JComboBox and vetoableChange?
1
stackoverflowdupquestions
String Deduplication feature of Java 8
Is String Deduplication feature of the G1 garbage collector enabled by default?
Play Again feature not working
1
stackoverflowdupquestions
How do you crash a JVM?
how to set location of jvm crash log files
Application crash on android
1
stackoverflowdupquestions
Responsibilities of JVM bytecode verifier
Indicating when the JVM Verifier Verifies classes
Why doesn't the Java 7 byteode verifier choke on this?
1
stackoverflowdupquestions
How to avoid warnings when implementing an interface that uses raw types?
How to avoid generics warnings when using "raw types" as static field / return type?
Implementing methods having raw types in Scala
1
stackoverflowdupquestions
Certain Unix commands fail with "... not found", when executed through Java using JSch even with setPty enabled
Certain Unix commands fail with "... not found", when executed through Java using JSch
How to get the Output result in jsch
1
stackoverflowdupquestions
DynamoDBMapper for conditional saves
DynamoDBMapper save item only if unique
Unable to mock dynamoDBMapper.query
1
stackoverflowdupquestions
Java: Find Caller Class
How to know the caller class of a function
Return a valid value to the caller using a static method in Java
1
stackoverflowdupquestions
IntelliJ Gradle Plugin: The supplied javaHome seems to be invalid
Android Studio - supplied javaHome is not a valid folder
Gradle Eclipse Plugin
1
stackoverflowdupquestions
IllegalMonitorStateException notify() and wait()
Java Wait and Notify: IllegalMonitorStateException
Java Lock Condition Wait and Notify: IllegalMonitorStateException
1
stackoverflowdupquestions
Difference between UTF-8 and UTF-16?
Why don't UTF-8 and UTF-16 encoded Strings print the same in Java?
UTF-8 and UTF-16 in Java
1
stackoverflowdupquestions