query stringlengths 1 74.9k | positive stringlengths 0 174k | negative stringlengths 1 174k | label float64 1 1 | task_name stringclasses 33
values |
|---|---|---|---|---|
Why doesn't h:dataTable inside ui:repeat get correct ID? | How to refer to dataTable parent within the dataTable? | Unable to set iTotalRecords and iTotalDisplayRecords in datatable | 1 | stackoverflowdupquestions |
What's the better way to add elements from a Stream to an existing List? | How to add elements of a Java8 stream into an existing List | Java 8 Stream add elements to list and sum | 1 | stackoverflowdupquestions |
how to handle bad file selection for image display in swing | Select a file path with Java Swing and do something with that selection | JComboxBox selection | 1 | stackoverflowdupquestions |
Spring RedirectAttributes: addAttribute() vs addFlashAttribute() | Confusion between addAttribute and addFlashAttribute in RedirectAttributes class | what differencies between request.setAttribute() and model.addAttribute? | 1 | stackoverflowdupquestions |
Malicious code vulnerability - May expose internal representation by incorporating reference to mutable object | Malicious code vulnerability - May expose internal representation by returning reference to mutable object - With what objects? | Incorporating HTML with JavaScript in my Java application | 1 | stackoverflowdupquestions |
Converting all float values in String from scientific notation to decimal notation | Convert a number from scientific notation to decimal in JAVA | Convert double from scientific notation | 1 | stackoverflowdupquestions |
How is an overloaded method chosen when a parameter is the literal null value? | Using null in overloaded methods in Java | overloaded methods in java | 1 | stackoverflowdupquestions |
Tomcat vs Weblogic JNDI Lookup | JNDI path Tomcat vs. Jboss | Accessing session attributes in weblogic vs tomcat | 1 | stackoverflowdupquestions |
How to assign different methods to different threads in java | calling different methods using threads | different Methods call in java | 1 | stackoverflowdupquestions |
WebSockets production ready server in Java? | Best Java framework for server side WebSockets | Combination JavaScript, Websockets and Java | 1 | stackoverflowdupquestions |
Java add icon to JCalendar | Java highlighting specific dates in JCalendar cell | How to know if a JCalendar is empty? | 1 | stackoverflowdupquestions |
When to use refactoring with "Convert Anonymous to Inner"? | How are Anonymous inner classes used in Java? | Method inside anonymous inner class | 1 | stackoverflowdupquestions |
Automatic generation of Unit test cases for .NET and Java | Automatic generation of unit tests for Java? | Does not automatic sum | 1 | stackoverflowdupquestions |
How to pass a session attribute as method argument (parameter) with Spring MVC | Spring MVC Session Attribute Access | MarshallingView in Spring MVC 3 | 1 | stackoverflowdupquestions |
HTTP ERROR 404 while installing java 7 on Ubuntu 14.04 | Installing Java 7 on Ubuntu | HTTP Status 404 - /LoginAuth | 1 | stackoverflowdupquestions |
Is using the Class instance as a Map key a best practice? | Java map, key = class, value = instance of that class | What is the best practice? | 1 | stackoverflowdupquestions |
how to remove the warning The serializable class ClASSNAME does not declare a static final serialVersionUID field of type long | Understanding this warning: The serializable class does not declare a static final serialVersionUID | What is a serialVersionUID and why should I use it? | 1 | stackoverflowdupquestions |
Mallet SimpleTagger Classpath | Mallet SimpleTagger FileNotFoundException: c:\mallet-2.0.7 (Access is denied) | Extracting keywords from relevant topics using a trained MALLET Topic model | 1 | stackoverflowdupquestions |
java vector to arraylist | Converting Vector to Arraylist | SortedVector from Vector | 1 | stackoverflowdupquestions |
What is the eclipse shortcut for auto-generating a default and field constructor? | How To Make A default Constructor with keyboard Shortcut (Eclipse) | How do I enable a shortcut on Eclipse? | 1 | stackoverflowdupquestions |
Using XPath Contains against HTML in Java | Library to query HTML with XPath in Java? | Xpath in for loop using Java | 1 | stackoverflowdupquestions |
How to wait for a MouseListener mouse press? | Java MouseListener | External MouseListener in Java | 1 | stackoverflowdupquestions |
getClassLoader().getResource() returns null | java getResource() not working | What is the difference between Class.getResource() and ClassLoader.getResource()? | 1 | stackoverflowdupquestions |
Box2D ChainShape VertexCount=0 | Box2D collisions error | How to get the up vector of my object in libgdx/box2d? | 1 | stackoverflowdupquestions |
PropertyNotFoundException: Could not find setter for column_name on class | Hibernate exception PropertyNotFoundException when using Transformer | Hashmap Error: javax.el.PropertyNotFoundException | 1 | stackoverflowdupquestions |
Use of Optional in a map | Uses for Optional | Java 8 example for if else with Optional | 1 | stackoverflowdupquestions |
Why filtering an unsorted list is faster than filtering a sorted list | Why is it faster to process a sorted array than an unsorted array? | Filtering ArrayList of Strings | 1 | stackoverflowdupquestions |
apache http client org.apache.http.NoHttpResponseException: The target server failed to respond | get NoHttpResponseException for load testing | How to stop an Apache 2 HTTP server from a Java program? | 1 | stackoverflowdupquestions |
inserting first node into empty doubly-linked list [how to] | How do I insert a new node before first node of a doubly-linked list? | Sort Method for Doubly Linked List | 1 | stackoverflowdupquestions |
Use of Google-collections MapMaker? | Can someone explain to me when it is useful to use MapMaker or WeakHashMaps? | Guava MapMaker optionally set maximumSize(0) for factory method? | 1 | stackoverflowdupquestions |
How to create 2D ArrayList and add elements | How to create an 2D ArrayList in java? | get 2d arraylist elements - java | 1 | stackoverflowdupquestions |
Is null an Object? | Why does Object == null work? | Why is this value null? | 1 | stackoverflowdupquestions |
Multiple inheritance on Java interfaces | How do Java Interfaces simulate multiple inheritance? | how to convert this multiple inheritance to interfaces in Java? | 1 | stackoverflowdupquestions |
Java: How to convert List to Map | Convert List<Object[]> Array into Map | Convert a Map into JSON | 1 | stackoverflowdupquestions |
C# sealed vs Java final | Is there any functional difference between c# sealed and Java's final keyword? | final String vs final Integer | 1 | stackoverflowdupquestions |
How do I encode/decode short strings as Base64 using GWT? | Decode Base64 data in Java | How to encode a string with Base64 in Android? | 1 | stackoverflowdupquestions |
Get TimeZone offset value from TimeZone without TimeZone name | How do I get the UTC offset for a timezone in Java? | How to save DateTime as Date with TimeZone offset included? | 1 | stackoverflowdupquestions |
Why should I *not* override GetHashCode()? | Why does C# not implement GetHashCode for Collections? | Override a method in another class | 1 | stackoverflowdupquestions |
spring mvc nested model validation | Spring MVC: How to perform validation? | Validation in Spring MVC | 1 | stackoverflowdupquestions |
Why does Runtime.exec(String) work for some but not all commands? | Java Runtime exec() not working | servlet multiple exec commands | 1 | stackoverflowdupquestions |
ExecutorCompletionService? Why do need one if we have invokeAll? | Whether to use invokeAll or submit - java Executor service | How to use an ExecutorCompletionService | 1 | stackoverflowdupquestions |
Inline external CSS with HTML | How do I convert HTML to inline CSS in Google AppEngine? | Java - inline class definition | 1 | stackoverflowdupquestions |
Telnet support in JSch | Running telnet command on remote SSH session using JSch | Java Telnet Server: Access a method from another class | 1 | stackoverflowdupquestions |
Scroll JScrollPane to bottom | Java scroll JScrollPane with JPanel within to bottom | JScrollPane won't scroll - Java Desktop Application | 1 | stackoverflowdupquestions |
Ant JUnit ClassNotFoundException | New to Ant, ClassNotFoundException with JUnit | Apache Ant: java.lang.ClassNotFoundException: | 1 | stackoverflowdupquestions |
Hibernate Session.delete() an object if exists | Hibernate Delete query | Table doesn't exists using hibernate | 1 | stackoverflowdupquestions |
Tomcat. This parser does not support specification null version null | XSD Validation: This parser does not support specification "null" version "null" | Why getDeepestComponentAt() return null? | 1 | stackoverflowdupquestions |
Color row in JTree | Color rows in JTree | (java) from JTree to XML | 1 | stackoverflowdupquestions |
Declaring arrays in Java | Is there any difference between ways we are declaring arrays? | Declaring array in java | 1 | stackoverflowdupquestions |
Tomcat thread dump | kill -3 to get java thread dump | How do get heap dump and thread dump for Tomcat in Mac | 1 | stackoverflowdupquestions |
Adjust brightness and contrast of BufferedImage in Java | How to change the brightness of an Image | ImageJ Brightness & Contrast over a stack of images | 1 | stackoverflowdupquestions |
How to check whether an input conforms to an arbitrary amount of rules in Java? | How to implement a Predicate in Java used for cross-checking a String against an arbitrary amount of rules? | No instance of type variable V,K exist so that HashMultiMap<V,K> conforms to MultiMap<..,..> | 1 | stackoverflowdupquestions |
Java Strings: compareTo() vs. equals() | Relationship between equals and compareTo methods | Why Doesn't compareTo() work? | 1 | stackoverflowdupquestions |
Is a volatile int in Java thread-safe? | How does volatile make my class thread-safe? | How does volatile actually work? | 1 | stackoverflowdupquestions |
JFreeChart using shifting one series by a given offset value | Using JFreeChart to display recent changes in a time series | JFreeChart: Add multiple series to DynamicTimeSeriesCollection and update them properly | 1 | stackoverflowdupquestions |
Generate classes with jaxb2-maven-plugin from WSDL | How to create the class java from WSDL in jaxb2-maven-plugin version 2? | Maven project with JAXB2 plugin does not work without maven clean | 1 | stackoverflowdupquestions |
Java JToggleButton freezes in While loop | Getting the state of JToggleButton | JToggleButton not showing in GUI | 1 | stackoverflowdupquestions |
Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean | Spring boot -- Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean | Forcing Spring Boot to NOT use EmbeddedWebApplicationContext? | 1 | stackoverflowdupquestions |
Why use Optional.of over Optional.ofNullable? | Uses for Optional | Get value from one Optional or another | 1 | stackoverflowdupquestions |
Recurring Exception without a stack trace - how to reset? | Exception without stack trace in Java | Creating a recurring timer | 1 | stackoverflowdupquestions |
How to sort a treemap based on its values? | TreeMap sort by value | JAVA, in treemap want to change value, in object? | 1 | stackoverflowdupquestions |
string trim function is not working | trim() does not working | How to trim a string for integer part only | 1 | stackoverflowdupquestions |
Changing the JFrame title | How to create a JFrame with a title | JPanel not changing on JFrame | 1 | stackoverflowdupquestions |
Unable to obtain ZonedDateTime from TemporalAccessor using DateTimeFormatter and ZonedDateTime in Java 8 | Java 8 - DateTimeFormatter and ISO_INSTANT issues with ZonedDateTime | ZonedDateTime parse exception | 1 | stackoverflowdupquestions |
Using a generic type with Gson | Gson: parse generic collections | How to get a value from gson object by key | 1 | stackoverflowdupquestions |
Can FTPSClient from Apache Java library be used to transfer a file over SFTP? | Java SFTP Transfer Library | SFTP connection with FTPSClient is failing | 1 | stackoverflowdupquestions |
Java mail - attachments && inline images | Java Mail, sending multiple attachments not working | Sending e-mail with inline images using JavaMail API | 1 | stackoverflowdupquestions |
Difference between a deprecated and a legacy API? | what are the legacy classes in Java? | @deprecated vs @Deprecated | 1 | stackoverflowdupquestions |
Is there any way to know which parameter is being parsed in a Jersey @__Param fromString handler? | Read another parameter within jersey's ParamConverter | jersey 2: How to create custom HTTP param binding | 1 | stackoverflowdupquestions |
How to provide your services via @Context in Neo4j unmanaged extension | How to create unmanaged Neo4j extension? | Java with Neo4j | 1 | stackoverflowdupquestions |
How to write @Override annotation | When do you use Java's @Override annotation and why? | What is the purpose of the @Override annotation? | 1 | stackoverflowdupquestions |
Calculate the year quarter difference in java | How to get the first date and last date of current quarter in java.util.Date | How to have the four quarter of Year relative to a date | 1 | stackoverflowdupquestions |
element <com.google.android.gms.ads.AdView> is unknown | Error inflating class com.google.ads.AdView | Android Studio Could not find com.google.android.gms:play-services | 1 | stackoverflowdupquestions |
Java - Convert Image to black and white - fails with bright colors | Converting an image to black and white ( not gray scal) | How do I create text with different colors | 1 | stackoverflowdupquestions |
Dependency Injection in jersey 2.17 | Dependency injection with Jersey 2.0 | array dependency injection in spring? | 1 | stackoverflowdupquestions |
Creating custom JButton from images containing transparent pixels | Creating a custom button in Java with JButton | How to add images to a JButton when the images are in an array | 1 | stackoverflowdupquestions |
Where's my invalid character (ORA-00911) | java.sql.SQLSyntaxErrorException: ORA-00911: invalid character | java stored procedure cause ORA-00911: invalid character | 1 | stackoverflowdupquestions |
Struts2 2.5 - Multiple actions in same form | struts2 : Problem in submitting same form to different actions | Struts2 customExceptionMappingInterceptor | 1 | stackoverflowdupquestions |
Is there an indexable sorted list in the Java.util package? | Sorted array list in Java | Sorted List in Java | 1 | stackoverflowdupquestions |
EJB remote client migration from JBoss AS 7.1 to Wildfly 8.1 | WildFly: EJB invocations from a remote client | EJB remote application-client | 1 | stackoverflowdupquestions |
Received fatal alert: handshake_failure, debug does not show the cause | Received fatal alert: handshake_failure through SSLHandshakeException | Java 8 SSL Handshake failure | 1 | stackoverflowdupquestions |
Difference for <? super/extends String> in method and variable declaration | Difference between <? super T> and <? extends T> in Java | Difference between 'super' and 'this' | 1 | stackoverflowdupquestions |
Get JSON key name using GSON | Gson Help - Trying to get the first value (key) of JSON using Gson | JSON to GSON Objects | 1 | stackoverflowdupquestions |
Set default saving extension with JFileChooser | How to save file using JFileChooser? | JFileChooser Help | 1 | stackoverflowdupquestions |
Wrapping HTML text in a JEditorPane inside a JScrollPane | Add HTML in JEditorPane in Java Swing | Error trying to set the url for a JEditorPane | 1 | stackoverflowdupquestions |
Spring-boot "Unsupported major.minor version 51.0" when try to build with java 6 | Java 6 Unsupported major.minor version 51.0 | Android Project Build Error:Unsupported major.minor version 52.0 | 1 | stackoverflowdupquestions |
Do developers actually use vim to write code (Java) on a Windows OS? | Any good tutorial for moving from eclipse to vim? | Vim for doing java and C#? | 1 | stackoverflowdupquestions |
@Autowired and static method | Can you use @Autowired with static fields? | I don't understand Autowired in Spring | 1 | stackoverflowdupquestions |
GregorianCalendar outputs: The date is java.util.GregorianCalendar[time=1141556400000,areFieldsSet=true,areAllFieldsSet=true | Convert a string to GregorianCalendar | Convert changed GregorianCalendar to Date | 1 | stackoverflowdupquestions |
How to bypass path in servlet filter with Jersey security annotations in Java | Using name binding annotations in Jersey | Can I use Spring Security annotations in ZKGrails composers? | 1 | stackoverflowdupquestions |
JAVA -tomcat- Request header is too large | Request header is too large | Check user from request in Tomcat | 1 | stackoverflowdupquestions |
net.sf.jasperreports.engine.JRRuntimeException: Function MONTH not found | JasperReports: CONCATENATE function not found | net.sf.jasperreports.engine.JRRuntimeException: Category series name is null | 1 | stackoverflowdupquestions |
Java Character literals value with getNumericValue() | C# char.GetNumericValue v/s Java Character.getNumericValue | Sort Java Script Object literals | 1 | stackoverflowdupquestions |
Where do I find proguard.cfg in my project? | Proguard.cfg Missing | How can i have a good obfuscatig with ProGuard? | 1 | stackoverflowdupquestions |
Ignore certificate errors when requesting a URL in Java | Ignore SSL Certificate Errors with Java | NgResource get call for requesting a map | 1 | stackoverflowdupquestions |
ANTLR: From CommonTree to useful object graph | Converting Antlr syntax tree into useful objects | ANTLR: Is there a simple example? | 1 | stackoverflowdupquestions |
asmack - can't read VCard | getSearchForm returns null when using UserSearch in XMPP with aSmack | asmack - receiving custom XML messages | 1 | stackoverflowdupquestions |
how to get a list of dates between two dates in java ? How to include/exclude start date/end date also? | How to get list of dates between two dates? | Creating Dates in Java | 1 | stackoverflowdupquestions |
Trouble with filewriter overwriting files instead of appending to the end | Appending a file, instead of overwriting it? | Java FileWriter help | 1 | stackoverflowdupquestions |
Convert integer minutes into String "hh:mm" | Code for adding more minutes to an "HH:MM" string | Read from System.in in hh:mm format with delimiter | 1 | stackoverflowdupquestions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.