query stringlengths 1 74.9k | positive stringlengths 0 174k | negative stringlengths 1 174k | label float64 1 1 | task_name stringclasses 33
values |
|---|---|---|---|---|
Java Annotations - looking for an example of RetentionPolicy.CLASS | RetentionPolicy CLASS vs. RUNTIME | java.net.URLClassLoader doesn't add class annotations | 1 | stackoverflowdupquestions |
Apache HttpClient and HttpConnection in a multithreaded applicatio | Best Practice to Use HttpClient in Multithreaded Environment | Multithreaded server in Java | 1 | stackoverflowdupquestions |
what is exception propagation? | Guidelines on Exception propagation (in Java) | Which propagation to use in Spring? | 1 | stackoverflowdupquestions |
Java SHA256 outputs different hash to PHP SHA256? | Java how to do sha256 hashing equiavelent to php crypt function ? result is not the same? | Java SHA256 hash not the same as in vb.net | 1 | stackoverflowdupquestions |
Should serialVersionUID be unique for different classes? | What is a serialVersionUID and why should I use it? | why user defined serialVersionUID is not used while desialization? | 1 | stackoverflowdupquestions |
Unsupported Class Version Error | Java Compilation Errors: Unsupported Class Version | list.add(element) unsupported operation exception | 1 | stackoverflowdupquestions |
Serving sitemap.xml and robots.txt with Spring MVC | Build sitemap.xml by Java Spring | How to return a XML file with Spring MVC? | 1 | stackoverflowdupquestions |
How to write nullable int in java? | How to present the nullable primitive type int in Java? | Java @Id without @column(nullable=false) | 1 | stackoverflowdupquestions |
Minimal example of Push in Vaadin 7 app ("@Push") | Displaying Same Data Aross Multiple Clients Using Push in Vaadin 7 app | Vaadin server push from another thread | 1 | stackoverflowdupquestions |
Image isn't creating using the BitmapFactory.decodeByteArray | Why does BitmapFactory.decodeByteArray return null? | BitmapFactory.decodeByteArray() returns null on binarized Bitmap | 1 | stackoverflowdupquestions |
Count letters in a string Java | How to check how many letters are in a string in java? | return true if there is no letters | 1 | stackoverflowdupquestions |
How to add JCheckBox in JTable? | Adding JCheckBox into JTable | How can I put a JCheckbox on a JTable? | 1 | stackoverflowdupquestions |
Update City Spinner with notifyDataSetChanged after state is selected | notifyDataSetChanged() not updating my array for my spinner | How to get the value of a selected item in a spinner? | 1 | stackoverflowdupquestions |
Left padding integers (non-decimal format) with zeros in Java | How can I pad an integer with zeros on the left? | Decimal format in Java? | 1 | stackoverflowdupquestions |
Parse indented text tree in Java | Java - Indented list from a tree | Indented print in java | 1 | stackoverflowdupquestions |
Peer not authenticated while importing Gradle project in eclipse | Could not resolve org.apache.commons:commons-lang3:3.0 peer not authenticated gradle 2.2.1 | javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated in netbeans | 1 | stackoverflowdupquestions |
Declaring/initializing variables inside or outside of a double (or multiple) loop | Declaring variables inside or outside of a loop | Difference between declaring variables before or in loop? | 1 | stackoverflowdupquestions |
Benefit of Polymorphism | Why to use Polymorphism? | Java polymorphism question | 1 | stackoverflowdupquestions |
Confusing results on using Runtime.getRuntime().totalMemory() and freeMemory() to calculate memory? | a question on Runtime.getRuntime().totalMemory() | Execute java file with Runtime.getRuntime().exec() | 1 | stackoverflowdupquestions |
Dynamically Adding a JTextArea to Jpanel not working | Moving a JTextArea around a JPanel | How would I have a JTextArea in one class, and print to a JTextArea in another class? | 1 | stackoverflowdupquestions |
addition to Managed Bean Best Practice | Managed-Bean best practice | Managed Bean - Only execute code on page load | 1 | stackoverflowdupquestions |
How to create an object pool to be able to borrow and return objects | Add objects to object pool | Borrow and return methods in Library management system | 1 | stackoverflowdupquestions |
jtable cellrenderer changes backgroundcolor of cells while running | How to color cells from JTable? | How to calculate jTable width and Height after column adjustment if data is changed from a cellrenderer | 1 | stackoverflowdupquestions |
Open source Java library to produce webpage thumbnails server-side | Are there any java library for thumbnails generation? | Video Thumbnails in Java | 1 | stackoverflowdupquestions |
How to get .equals() being symmetric when using .compareTo() in Java | Implementing equals method using compareTo | Java Strings: compareTo() vs. equals() | 1 | stackoverflowdupquestions |
What does the Type parameter for Thread and Runnable signify? | Runnable with a parameter? | new Runnable() but no new thread? | 1 | stackoverflowdupquestions |
What's the different between LinkedBlockingQueue and ConcurrentLinkedQueue? | LinkedBlockingQueue vs ConcurrentLinkedQueue | ConcurrentLinkedQueue and list methods | 1 | stackoverflowdupquestions |
Image resize quality (Java) | Quality of Image after resize very low -- Java | Java: make an low quality image | 1 | stackoverflowdupquestions |
Optional parameters with named query in Hibernate? | How to query with hibernate and optional parameters? | Hibernate bulkUpdate() with List as parameters | 1 | stackoverflowdupquestions |
Spring boot session management - why are there two instances of sessionRegistry? | Spring boot sessionRegistry returns empty list of principals | Understanding authentication and session management using Spring boot | 1 | stackoverflowdupquestions |
ClassNotFoundException on all Servlets running Maven application from Eclipse | Maven Eclipse Tomcat ClassNotFoundException | ClassNotFoundException: org.apache.commons.cli.ParseException with maven | 1 | stackoverflowdupquestions |
How to pass a ArrayList<Mat> from Java to native side(NDK) in opencv for android | Pass Array of Mat to NDK | How does NDK work in Android - What is the order that NDK, JNI etc are used? | 1 | stackoverflowdupquestions |
Video Thumbnails in Java | How to get video thumbnails? | MediaStore.Images.Thumbnails appears to be empty | 1 | stackoverflowdupquestions |
Proper way to pool client channels in netty? | How to create channel pool in netty? | Netty 4 multiple client | 1 | stackoverflowdupquestions |
When should EntityManagerFactory instance be created/opened? | Best practice to get EntityManagerFactory | When entityManagerFactory is not named "entityManagerFactory" | 1 | stackoverflowdupquestions |
SwingWorker, Cancel-Button doesn't work | How cancel the execution of a SwingWorker? | Cancel SwingWorker clearly with session | 1 | stackoverflowdupquestions |
Is a Java char array always a valid UTF-16 (Big Endian) encoding? | Is an instance of a Java string always valid UTF-16? | Converting Little Endian to Big Endian | 1 | stackoverflowdupquestions |
maven build failed: Unable to locate the Javac Compiler in: jre or jdk issue | Maven unable to locate Javac Compiler - Unable to locate the Javac Compiler in: | why does this code compile with eclipse compiler but not with javac (maven) | 1 | stackoverflowdupquestions |
What is short circuiting and how is it used when programming in Java? | Would this be an example of short circuiting? | Java Logical 'AND' vs 'OR' Short-Circuiting Consistency | 1 | stackoverflowdupquestions |
how to garbage collect a direct buffer java | Java - When does direct buffer released? | java 8 collect List<String> | 1 | stackoverflowdupquestions |
Unloading a JVMTI agent at runtime? | java agent with jvmti load at runtime, unload from within | JVMTI - Get object for field in class | 1 | stackoverflowdupquestions |
Set a Spring REST Controller welcome-file | How can I make welcome-file-list work with Spring Servlet? | Java Spring NtlmProcessingFilter second controller | 1 | stackoverflowdupquestions |
BASIC authentication from JAVA to Sharepoint 2013 REST API | How to authenticate with MS SharePoint to use its API with Java? | Access to files in Sharepoint 2007 using javascript from external site | 1 | stackoverflowdupquestions |
populating 2d array with two 1d arrays in java | Convert two 1D arrays into single 2D array | Java convert 1D array to 2D | 1 | stackoverflowdupquestions |
Java - Read all .txt files in folder | How to read all files in a folder from Java? | How get all files in folder in Java | 1 | stackoverflowdupquestions |
How does Java store UTF-16 characters in its 16-bit char type? | utf char in Java | How to use UTF-16 in URL encoding? | 1 | stackoverflowdupquestions |
Mapping a boolean[] PostgreSql column with Hibernate | Mapping a PostgreSQL array with Hibernate | Hibernate list mapping | 1 | stackoverflowdupquestions |
How to add SVG image to PDF built with HTML and Flying Saucer library (and Batik)? | Html with embedded svg convert to PDF using Flying saucer Itext batik | iText flying-saucer how to change background on last page | 1 | stackoverflowdupquestions |
Most efficient way to order an array of Strings by frequency | How to count frequency of characters in a string? | frequency range of the spectogram | 1 | stackoverflowdupquestions |
Reading a specific line from a text file in Java | How can I get a specific line from a text file? | Reading a line from a text file | 1 | stackoverflowdupquestions |
type casting of byte and int | Integer to byte casting in Java | About Casting Object | 1 | stackoverflowdupquestions |
JDialog setVisible(false) vs dispose() | Why are the Window/Component Listeners invoked differently when setVisible(false) and dispose() are called? | JFrame not responding to setVisible() and dispose() | 1 | stackoverflowdupquestions |
How to implement a pagination in Struts 2 | Using a pagination with Struts 2 and Hibernate | How to implement pagination in Spring MVC 3 | 1 | stackoverflowdupquestions |
best way to pick a random subset from a collection? | Get a random subset from a result set in java | Pick random element from array, but unique | 1 | stackoverflowdupquestions |
Java naming convention with acronyms | What is correct Java naming convention for id? | Java naming convention for a class with version in its name? | 1 | stackoverflowdupquestions |
Centering Text in a JTextArea or JTextPane - Horizontal Text Alignment | Center alignment of a word in JTextPane | Centering Panel in Java | 1 | stackoverflowdupquestions |
In java.time, how is the result of adding a month calculated? | Adding month to specific day of month with java.time | Can't convert int month to month name android java | 1 | stackoverflowdupquestions |
Specify common resources in a multi-module maven project | maven test resources in a multi module project | How to compile a single module inside it in a multi-module maven project? | 1 | stackoverflowdupquestions |
java.util.NoSuchElementException: No line found | java.util.NoSuchElementException: No line found | java.util.NoSuchElementException Error | 1 | stackoverflowdupquestions |
Posting JSON to Controller returns 400 Bad Request | POSTing JSON to Spring MVC Controller Returns 400 Bad Request | HTTP Error 400 Bad request | 1 | stackoverflowdupquestions |
Final variable assignment with try/catch | try-catch and final variables | Java try/catch method | 1 | stackoverflowdupquestions |
Format file size as MB, GB etc | how to get size of file in mb? | Converting KB to MB, GB, TB dynamically | 1 | stackoverflowdupquestions |
SSLHandshakeException: Received fatal alert: handshake_failure after Java 6 -> 8 upgrade | Received fatal alert: handshake_failure through SSLHandshakeException | SSLHandshakeException in Android Tests | 1 | stackoverflowdupquestions |
What's the "principal" in Spring Security? | Unit testing methods using Principal from Spring Secucrity | Why the name "realm" and "principal" in Java EE security? | 1 | stackoverflowdupquestions |
Java send and receive SMS. Free SMS gateway? | What can you use to get an application to be able to receive SMS message? | Do I need to write into SMS Provider when set as default SMS app on Android? | 1 | stackoverflowdupquestions |
Updated eclipse, adt, Libgdx doesn't compile on android | Android application using libgdx crashes since update to ADT 17 | Can't install the android adt in eclipse | 1 | stackoverflowdupquestions |
How do I remove the blue border highlight that appears when selecting a tab in a JTabbedPane? | JTabbedPane - set default border around tabs..? | How can I refer to a specific tab using JTabbedPane? | 1 | stackoverflowdupquestions |
Thread-safe iteration over a collection | is for-each iteration thread safe? | is newKieSession thread-safe? | 1 | stackoverflowdupquestions |
Hibernate Criteria API: how to get the sum of all the values along two columns | Using sum() in hibernate criteria | Hibernate Criteria Query to get specific columns | 1 | stackoverflowdupquestions |
JNI memory management using the Invocation API | JNI objects creation and memory management | JNI: From C code to Java and JNI | 1 | stackoverflowdupquestions |
Java: Convert DKIM private key from RSA to DER for JavaMail | Convert RSA pem key String to der byte[] | JavaMail - setReplyTo (list) | 1 | stackoverflowdupquestions |
Varargs in method overloading in Java | bug with varargs and overloading? | Java method overloading and varargs | 1 | stackoverflowdupquestions |
getOutputStream() has already been called for this response | getOutputStream() has already been called for this response | Cannot find symbol method getOutputStream() | 1 | stackoverflowdupquestions |
Finding Multiple Modes In An Array | Finding multiple modes in an array of integers with 1000 elements | Finding an element in an array in Java | 1 | stackoverflowdupquestions |
Are there any java library for thumbnails generation? | Open source Java library to produce webpage thumbnails server-side | How to get images and videos thumbnails from a path, not working | 1 | stackoverflowdupquestions |
Possibility to explicit remove Serialization support for a lambda | Serialization of a lambda after its creation | Serialization and write object | 1 | stackoverflowdupquestions |
Can't access a folder in java package | Cannot Access Folder in java | Access a file from a JAR in the same folder | 1 | stackoverflowdupquestions |
Is it required to use thread wait() and notify() inside a synchronized block? | java: wait(), notify() and synchronized blocks | About wait() and notify() methods of thread in java | 1 | stackoverflowdupquestions |
How to convert generic parameter to a class | How to get class of generic type when there is no parameter of it? | generic type parameter | 1 | stackoverflowdupquestions |
ProcessBuilder cannot run bat file with spaces in path | ProcessBuilder with dynamic path (possibly with spaces) | ProcessBuilder does not work? | 1 | stackoverflowdupquestions |
How to generate a random number with Java from given list of numbers | how to generate random number from array | How to generate given number of random objects with given number of attributes? | 1 | stackoverflowdupquestions |
Swing Font Rendering | Java Font Rendering | Rendering issue in java swing | 1 | stackoverflowdupquestions |
Why does getGeneratedKeys() return "GENERATED_KEY" as column name? | PostgreSQL JDBC getGeneratedKeys returns all columns | SQL JDBC JAVA: getGeneratedKeys() after IF NOT EXISTS ( SELECT ...) INSERT INTO (...) | 1 | stackoverflowdupquestions |
Java - find the first cause of an exception | How to handle cause by Exception in a good Java way | Why does this cause a null pointer exception? | 1 | stackoverflowdupquestions |
Converting Unix timestamp to String with Joda Time | Java: Date from unix timestamp | Parse joda-time | 1 | stackoverflowdupquestions |
How do I get request url in jsf managed bean without the requested servlet? | Can a jsf managed bean behave like a servlet? | JSF GAE: Value Update Problem in managed bean method | 1 | stackoverflowdupquestions |
Auto code completion on Eclipse | Automatically opening completion window in Eclipse | How can I stop Eclipse's auto-completion feature from suggesting made up variable names? | 1 | stackoverflowdupquestions |
Add a row and modify the title of a JTable from an other class? | How to add row in JTable? | Add a title to a JTable | 1 | stackoverflowdupquestions |
Adapting dependencies after downgrading Google Play Services | Downgrading 9.0.83 Google Play Services manually to avoid DynamiteModule: Failed to load module descriptor | Android 8 or higher: Check for Google Play Services | 1 | stackoverflowdupquestions |
Missing Codebase manifest attribute for:xxx.jar | How do I fix "missing Codebase, Permissions, and Application-Name manifest attribute" in my JNLP app? | Using Java to read a .jar manifest file | 1 | stackoverflowdupquestions |
Are all Thread methods (like getName/setName) thread-safe? | why setName in Thread class assigns to a character array?why not a String? | getName() from class Thread | 1 | stackoverflowdupquestions |
How to change gap in swing label | How to remove gap in java swing label of large size | Java: Gap in the beginning of a GridLayout | 1 | stackoverflowdupquestions |
What's the most elegant way to concatenate a list of values with delimiter in Java? | Concatenate string values with delimiter handling null and empty strings in java 8? | Elegant Solution? | 1 | stackoverflowdupquestions |
Does java(compiler or jvm) handles static final members of class differently? If yes how | What does the JVM do with a final variable in a class? | Why does "==" work differently when using "new String(..)"? | 1 | stackoverflowdupquestions |
How to generate comments as well when automatically generating getters and setters in Android Studio | How to automatically generate getters and setters in Android Studio | Getters/setters in Java | 1 | stackoverflowdupquestions |
Delete selected item from JList | How to delete item from JList java | How to set multiple items as selected in JList using setSelectedValue? | 1 | stackoverflowdupquestions |
Spring MVC not loading static resources from webapp | How to use spring MVC's <mvc:resources> tag in a java application context? | spring mvc resources map to /** | 1 | stackoverflowdupquestions |
How to set OnTouchListener for the entire screen? | Android onTouchListener on LinearLayout | How to get initial X, Y values (of first touch ACTION_DOWN) in OnTouchListener | 1 | stackoverflowdupquestions |
Non-static variable this cannot be referenced from a static context when creating an object | non-static variable cannot be referenced from a static context java | non-static method cannot be referenced from a static context | 1 | stackoverflowdupquestions |
How do I create an interface with methods that take an instance of some enum type? | Why would an Enum implement an Interface? | Access enum inside an interface | 1 | stackoverflowdupquestions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.