Coding Is Art

Find The Best Answers To Your Java Coding Problems



Java sockets with out of band data

java - What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)?

java - Websphere Portlet migration, missing parameter in DispatchAction

How to set or export display variable through java code?

java - WSDL first for existing service layer

swing - Java JTree expand only level one nodes

java - Building a Texas Hold'em playing AI..from scratch

java - How much code should one put in a constructor?

java - Looking for a .NET 3.5 / J2EE architecture concept comparison article/chart

java - Firefox "ssl_error_no_cypher_overlap" error

C# Equivalent of Java anonymous inner classes with init blocks

java - URL routing and relative links in Tomcat 5.5

Is there a good reference for using OLE Automation (from Java)?

Runtime class in java

java - How do I access JAAS roles at arbitrary point in the code?

java - How to add a inner mapping in a nested collection?

Netbeans, Ant and RMIC (Java RMIC Compiler) (Help with)

java - How to Overwrite the file saved in the Context Directory

java - How to get shutdown hook to execute on a process launched from Eclipse

How do I round up currency values in Java?

java - Classic Singleton implementation in OCaml

Why don't you have to explicitly declare that you might throw some built in exceptions in Java?

java - How can I check if a single character appears in a string?

java - Can and How do you use RandomAccessFile with a file contained on an FTP server?

performance - How expensive is Java Locking?

java - What is a valid content-type value for a .DM file type ( cellular phone DRM )

java - Android TextView Timer

java - About bug details

refactoring - Minimizing visibility in Java

interop - Java and MSMQ

java - Basic Spring help

java - What are your experiences with development frameworks and tools for building web applications?

java - Take string "asdxyz\n" and replace \n with the ascii value

java - Insert rows (parent and children) programmatically

java - Is System.nanoTime() completely useless?

soap - Getting Raw XML From SOAPMessage in Java

java - How to implement one-to-many relationships in Ibatis?

java - Getting struts s:url includeparams to work on jboss when deploying as ROOT.war

derby - Java Adding Image to BLOB datafield

java - What are some good sample applications using Spring and Hibernate?

java - How to count the number of occurrences of an element in a List

java - Best Approach for Cloning database records using SPs

java - Checking whether all enum values are mapped?

Java: Basic OOP Question

java - How to handle incomplete files? Getting exception

java - Injector.getInstance(..) returns a new instance for a singleton

java - How to make the output text attribute value as a hyperlink?

java - Doubt in FileAppender in log4j API

java - Generating JUnit Testcases

java - DFC reading a file

java swing : custom everything - subclass jcomponent or jpanel or ...?

Java Library? - Simplex / Linear Programming / Optimization

Unix epoch time to Java Date object

java - Using Condition in Regular Expressions

java - Making a component less sensitive to Dragging in Swing

Parse Pdf File and write content in word file using java

optimization - Is it possible to write a decent java optimizer if information is lost in the translation to bytecode?

java - Icon on a JFreeChart XY Plot

Java logging configuration only partially taken into account

java - jSecurity JDBCRealm SQL setup

java - How to initialize a value in web.xml from a JNDI variable?

java - How can I serialise a javabean to be loaded by Spring's DataBinder?

java - Exchanging of screens between two users

java - webservices and attribute types

Simple way to do Xml in Java

java - ACEGI Authentication available in tomcat 404 error handler

java - What are some additional directory conventions for Maven projects?

java - Custom widget shapes in SWT

Why is the end of the input stream never reached using Java Sockets?

java - Using log4j logging in weblogic 9/10

java - Optimize Hibernate entities saving?

java - Truncate String on closest word boundary

java - Regular expression to parse option string

java - How can I remove a column from a JTable with dragging?

java - UTF-8 text is garbled when form is posted as multipart/form-data

javascript - Is it possible to obtain a web-browser's Java VM without using an applet?

java - Saving a BufferedWriter instance in a class. Any problems?

java - Adding JTextField to a JPanel and showing them

reflection - How do I intercept a method invocation with standard java features (no AspectJ etc)?

java - Do you have any recommended plugins for Netbeans?

sockets - Java HTTP Snooper(Proxy) Does Not Forward Server Response

java - XPath can't find an engine

Floating Point errors in Colt Java matrix libraries

java - Modify JVM args from inside the JVM

java - HashMap gets over written every time I use .put()

ruby thread programming , ruby equivalent of java wait/notify/notifyAll

scalability - Java on mainframes

java - The XML code runs properly, but junit fails with NoClassDefFound

java - Alternatives to Regular Expressions

Throwing exceptions in Java

How can I send an email from Java that will auto-expire in Outlook?

java - Calling System.exit() in Servlet's destroy() method

Can someone explain to me what the reasoning behind passing by "value" and not by "reference" in Java is?

java - Have you used Quickcheck in a real project

Whats the best way to process an asynchronous queue continuously in Java?

java - Storing a 2 dimensional table (decision table) in XML for efficient Query(ies)

Factory methods for implementations of Java interfaces wrapped with Scala implicits?

java - How do I change the description of input's displayed for an operation defined using a MXBean

Creating an XML document using namespaces in Java

Java split() method strips empty strings at the end?

java - Adding fields to a WebService

java - can't run swing from the command line

java - JBoss AS target deploy

How to load third party libraries (like X11 libs) through code in Java?

java - Jetty Response with no Charset

Catching exceptions in Java

java - Is there more to an interface than having the correct methods

java - What tool can suggest index and covering indexes for dynamicly created queries?

java - Alternatives for JCIFS NTLM library

Eclipse Java; export jar, include referenced libraries, without fatjar

java - Detect changing value of object passed as parameter

Are there good Java libraries that facilitate building interactive shell-style applications?

.net - Techniques for Calling into a WCF Service from Java

java - JPA Implementations - Which one is the best to use?

java - Big XML file and OutOfMemoryError

xml namespace to java, how to model 'choice'?

java - How do you configure JBOSS to use the xml lib in the web app?

Batch deletion / purging of records via Java ORM

java - Basic question about servlet mapping

c# - object is to class as enum is to ...?

java - How to find the line number of the start of a procedure in Eclipse

java - Flex/LCDS Server-to-data-source Paging

java - Emma doesn't provide code coverage across projects

How to use Windows login for single-sign-on and for Active Directory entries for Desktop Java application?

java - Is it possible to have a MouseMotionListener listen to all system mouse motion events?

java - Casting to Unknown Type When Class Name as a String

java - When and why would you use Apache commons-digester?

overriding - What is @Override for in Java?

java - How to set up multiple source folders within a single Eclipse project?

java - RE: Big XML file

java - Android download binary file problems

java - is there a way to make a previous version latest without doing another commit in teamprise?

java - Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?

java - How to add hyperlink in JLabel?

java - Why should I learn C#?

web applications - Java or scripting

Should I use Java's String.format() if performance is important?

java - Tree construction from an ordered list

java - What are the advantages and disadvantes of yaml vs xml for Object graph de/serialization?

java - Duplicate set of columns from one table to another table

java - How can I get stock quotes using Google Finance API?

Absence of property syntax in Java

java - Exception occurs with JAX-RPC handler

java - How to handle escape sequences in string literals in ANTLR 3?

java - SAX Parser In Applet Failure

java.awt.HeadlessException - Applet not displayed - Part 2

java - Edit existing excel files using jxl api / Apache POI

.net - How can I create a PFX file from a Java Keystore?

database - Best way to save data in a Java application?

java - Maven FindBugs plugin

java - Relationship between JTable, TableModel & TableData

user interface - Fastest way to create a Java message dialog (swing/awt/other)?

internationalization - Java Menu Mnemonics in Resource Files

java - Difference between Set and Collection in hibernate

C# equivalent of Java 'implements' keyword?

Can I force java to throw an error when dividing by zero with floating point numbers?

java - How do I mock a method with generic objects in JMockit?

A Java collection of value pairs? (tuples?)

java - Are true and false keywords?

java - display image in servlet

java - 2-D (concurrent) HashMap: 2-property key type? hashmap of hashmaps? [update]

java - How to plot large data vectors accurately at all zoom levels in real time?

swing - Java Paint Method Doesn't Paint?

Non-blocking UDP I/O vs blocking UDP I/O in Java

code works for java graphics, but not graphics2d

spring - Scalability and high availability of a Java standalone application

java - Why are the methods of the Math class static?

java - Reading HTML file to view in JEditorPane

RAR archives with java

integer - Different between parseInt() and valueOf() in java?

How can I have a batch file launched on a server from within Java?

video - Possible to draw in YCbCr in Java?

Re-throwing exceptions in Java

java - Ordering unit tests in Eclipse's JUnit view

java - Where can I set the JRE/JDK which is used to run Netbeans besides the command line?

How can I send an SMS from Java?

smtp - What is the easiest way for a Java application to receive incoming email?

java - Multidimensional array in Python

java - Reading Strings and Binary from the same FileInputStream

java - List<Map<String,Object>> to org.json.JSONObject?

bit manipulation - Bitwise AND, Bitwise Inclusive OR question, in Java

Math help - Can't rotate something (knowing Java would be a plus)

java - EL in a JSP stopped evaluating

Should I keep instance variables in Java always initialized or not?

How is Java's notion of static different from C#'s?

authentication - How to authenticate against native OS in Java and without using JNI?

java - How do I instantiate an Object that uses generics with Spring framework?

java - el expression in jsp:invoke

linked list - clear() impl in Java's LinkedList

conditional - 1-line IF statements in java

java - When should I use EJB transaction attributes 'Mandatory' and 'Never'

try-catch block in Java - execution statements in catch code

java - What is a best solution for hot deploy to Jetty?

java - Why do people use Velocity and/or NVelocity?

Is a Ruby module equivalent to a Java Interface?

java - Force JUnit to run one test case at a time

java - Best performing way to guarantee data consistency between concurrent web service calls?

java - Can Maven collect all the dependent JARs for a project to help with application deployment?

Why doesn't the Java SDK installer set JAVA_HOME?

How can I measure time with microsecond precision in Java?

java - Need help with designing "infinite" threads

java - What name do you use for the parameter in a static variable setter method?

Is the Java API poorly designed and why?

java - How to display animation in a JTable cell

sockets - What can be the cause of java.net.SocketException: recv failed: Insufficient buffer space?

Generics in Java, using wildcards

image - Document-Rendering in Java

Detect windows logout event in Java application

java - Graphics2D: Drawing black on white?

macos - How do I find the user's 'Documents' folder with Java in OS X?

java - Simple database-based instance synchronization

java - How to create an SSL connection using the Smack XMPP library?

Passing a million numbers from java to matlab?

Explaining .NET or Java to a client

file io - Deleting non-empty directories in Java

debugging - How to Debug Java Application using VIM/GVIM?

java - String delimited regular expression

caching - Looking for simple Java in-memory cache

audio - Java: Playing WAV sounds

Java Regex - reduce spaces in a string

mysql - Database replication for redundancy using a free database and a Java with Spring & Hibernate web application

java - how to convert hex to byte for the following program?

Problem running Java .war on Tomcat

java - Hibernate: Collections of Collections

3D scene-graph library for Java?

Online compilers/runtime for Java, C++, Python and ObjC?

How to strip HTML attributes except "src" and "alt" in JAVA

algorithm - Optimizing the speed of insertion in java.util.Map/Set

Maximum size of data that can be fetched from a client socket using socketChannel of nio package in java

multithreading - Semaphore problems in Java with the Dining Philosophers

java - Swapping in and out logic on a running system

Is there a log4j or commons logging extension or other logging framework that is designed for Java 5 or higher?

java - How to detect when a variable changes value

multithreading - How do synchronized static methods work in Java and can I use it for loading Hibernate entities?

Read file from serial port using Java

java - How can you organize the code for a game to fit the MVC pattern?

date - Calculate elapsed time in Java / Groovy

Java applet double buffer trouble (and loop trouble)

java - Stopping EntityResolver from using the internet in maven2 build?

syntax - How can I hide all java.lang.Object methods from code completion?

java - creating instances of classes

java - Auto-locating a client's server

java - Eclipse RCP: Making use of configuration directory

java - log4j output suppressed?

java - XML Validation: Am I Doing It Right?

Adding Java Objects to database

java - Universal keybindings in Eclipse

Do 2D arrays use more resources than 1D arrays in Java?

java - Drawing a Translucent .png in AWT

java - Making cut/replace methods with JTextArea

java - How expensive are Exceptions

Which HTML tag is the proper one to use for Java applets (APPLET, EMBED, OBJECT)?

Java for C# developers

Reading file from serial port in Java

swing - Constructing a DataFlavor for drag and drop of an array of java objects

xml - Simple Java Web Service client over HTTPS

Passing exclamation point to java program on command line

design patterns - In Java, how should message producers identify themselves?

Diagnosing and improving performance of a java jnlp compared to jar file

process - how to give wait & close the command prompt in java

java - JasperReport size limit

java - Automating build process for a web application created in Eclipse

serialization - Developing a (file) exchange format for java

Is there a Java library to access the native Windows API?

java - How to solve the LazyInitializationException when using JPA and Hibernate

java - change directory and run the batch file in the same command prompt

java - Spring framework - class loader relationship

java - Singleton servlet?

java - LDAP Best Practices

java - Accessing the content of a JAX-WS Dispatch Response

java - Is There any Javax.comm third party solution for Vista and for Freebsd?

java - Apache Camel for Asynchronous Calls

java - Libraries Conflict for Quartz

java - Endless loop in a servlet - recovery possible?

java - What are the steps for connecting jdbc with mysql

java - Inheritance and where to declare an intended universal object

java - Sending Dates over RMI between machines in different regions

java - In log4j, is there a way to log errors based on timestamp?

java - How do I get the OSGi BundleContext for an Eclipse RCP application?

java - Problem with number of rows in a dataset

Is anyone using Scala in anger (and what advice for a Java programmer)?

How to communicate with a USB device under Windows and Java?

Best IDE for developing Java Desktop Applications

java - javadoc: @version and @since

graphics - A good 2d engine for Java?

java - Highlight inherited members

java - Why does JDialog 'jump' on setLocationRelativeTo()?

java - The word break rule file

Java Applet - MVC - How to bind model to view?

java - Kill Quartz's thread after redeploying application

spring - Create a Java File object (or equivalent) using a byte array in memory (without a physical file)

java - Use Spring options tag to display enum's toString value

sorting - Alphabetically Sort a Java Collection based upon the 'toString' value of its member items

java - Is there a way to make a JComboBox act like an HTML Select?

Common format for time zone in Java/J2me

java - how do you print a bag datatype?

synchronization - Java synchronized block vs. Collections.synchronizedMap

c# - Capture stdout in log4j/log4net

java - Glassfish logs on JSF Page

field - In Java, is it ever a bad idea to make an object's members publicly available?

Generating and Displaying PDF file in Flex/Java

java - read file in an applet

java - Using JBoss 4.2.x, how can I deploy a new data source without undeploying existing ones?

java - Common algorithm for generating a diff of the fields in two beans?

Gridview like display for hibernate objects in Java?

Should Java treat arrays as objects?

java - is there a way to combine xpath and regexp to extract parts of a node value?

java - What is the equivalent of the following jdk path in Ubuntu 8.04?

wordle word cloud - How to programatically send input to a java app running in a browser window?

java - How to find out an element node with a empty string value in xsl

java - Best Practice for including 3rd party jars in a core library?

java - Generating client code with wsdl2js?

java - Generic Method Fail

junit - How to mock a web server for unit testing in Java?

smartcard - Common Access Card (CAC) Authentication Using Java

java - What are usable databinding libraries for Swing?

java - Powermock Slows Down Test Startup on Eclipse/Fedora 10 when on NTFS partition

java - What is the recommended/standard install path for apache-tomcat on a linux box

java - replace a set of characters with another set of chars (in pair): "&", "&amp;" "<", "<" etc. in regex

java - What are the advantages of Apache Wicket?

java - Object construction from serialization - which is preferred?

java - What's the best library for manipulating JPEG metadata?

java - Struts tiles visual debugging

java - Unable to call a web service from Groovy

java - Static variables and methods

generics - Coding tip - intersection types and java enums

Java equivalent to WPF

java - JibX: how to output the fields from a particular class into different parts of the XML

java - How do you use TLS/SSL Http Authentication with a CXF client to a web service?

java - JTextPane keeps throwing BadLocation

Good-looking Java Swing Look&Feel?

java - Difficulty removing all components from a Jpanel

java - How to get SQL from Hibernate Criteria API (*not* for logging)

nlp - Looking for Java spell checker library

java - Is there a worst case implementation of the JVM?

How do you clear the Java Console?

java - How can I run updates in SVN without causing many conflicts

java - How to show source line numbers in jstack output?

Java: Reading the Trailing New Line from a Text File

Implementation of Xmodem protocol in Java

java - GroupLayout: Is it worth learning?

java - Benefits/drawbacks to running 64-bit JVM on 64-bit Linux server?

java - can't get the classpath right

Convert from Codepage 1252 (Windows) to Java, in Java

Where should I put the SQL files in my Java project?

java - Can Guice initialize beans?

java - Legacy mapping with hibernate

java - Android add item to global context menu

Dot matrix fast printing with precise layout in Java

What's the equivalent C# method to this basic Java method?

java - How to view recent CVS project changes in Eclipse?

java - Merge properties into a ResourceBundle from System.getProperties()

java - Experiencing occasional long garbage collection delays, why?

image - Java 2D and resize

java - Why does this applet have a destroy method?

java - Reducing JVM pause time > 1 second using UseConcMarkSweepGC

Trouble playing wav in Java

.net - What are the main benefits of using Mono over Java?

How can I index a lot of txt files? (Java/C/C++)

What will replace Beans Binding in Java 7?

java - What do these HPROF errors mean?

Java implementation of JSON to XML conversion

eclipse - Howto print java class garbage collection events?

java - Default XML namespace, JDOM, and XPath

What are the similarities and differences between Java Annotations and C# Attributes?

java - How to create a sidebar panel in OpenOffice?

java - Detecting keyboard direction keys using keyPressed

java - context class loader

java - Read Jena OntModel with Dependencies

java - Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss

java - How to use regular expressions to match everything before a certain type of word

java - "Missing artifact" errors with company repository

java - Is there a way to change the owner of a JDialog?

java - How can I make JOptionPane dialogs show up as a task on the taskbar?

java - How to get JavaDoc for SWT and JFace in Eclipse?

java - How do I get a HttpServletRequest in my spring beans?

java - Is inheritance possible in JFlex?

Why does my jscrollpane result in odd paint calls in java swing?

networking - How to check if an IP address is from a particular network/netmask in Java?

java - Text replacement efficiency

java - Problem with JSP EL evaluation

java - Check if a column is auto incremented in Sybase with JDBC

algorithm - Most efficient way to see if an ArrayList contains an object in Java

java - BufferedImage Rotation

java - How can I access an HSQL DB from a .NET application?

java - Arrays as proper objects

java - How to reset or kill JVM context?

Easy way to get a subset of the keyset of a TreeMap (in Java)

java - Is there a way to get a list of all the Spring application contexts running in the JVM?

collections - java.util.ArrayList<T>

java - What's the best way to duplicate/extend a static class's functionality?

javascript - How would I write a Java regex that gets the contents of a <script> tag?

java - JMX Thread stuck on ClientNotifForwarder

class loader: java.io.FileNotFoundException: file:/home/aaa/.m2/repository/com/st/module-1.1-SNAPSHOT.jar!/com/st/resource (No such file or directory)

Implementing client - masterserver/slaveserver application java

Building a tree in Java

java - Video Streaming Server on Mobile

java - How a servlet can get the absolute path to a file outside of the servlet?

java - Calling a method using reflection

java - Most efficient collection for this kind of LILO?

java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;

java - Weird JUnit logging behavior

networking - IPv4/IPv6 network calculations and validation for Java?

java - Ehcache / Hibernate and RMI replication with large number of entities

java - Whereabout of the RSS4J project

java - Pass JSP output stream to a method

Java's AWT or Swing for GUI construction?

compiler construction - Options for dynamic compilation in Java 5

java - JTable with a complex editor

sockets - Java Threadpool vs. new Thread in high request scenario

string - Text cleaning and replacement: delete \n from a text in Java

Running a Java process in Windows even after the user is logged out

java - Easymock: does the order of captures matter?

java - Best Practice For Creating Stub Files With Ant

How to suppress Java compiler warnings for specific functions

Java Swing Table size

java - Monitor changes to a collection

java - Extracting files from a Jar more efficently

java - JibX: how to map a class and avoid it being outputed as XML node

java - JSP - Saving a collection

java - A better class to update property files?

regex - Using Java to find substring of a bigger string using Regular Expression

java - Display BMP in JLabel

java - What is the best way to unit test a EJB3 component without having to deploy the component

java - Custom DateFormats mmm:ss

multithreading - Best practices for Java logging from multiple threads?

What standard optimization refactoring can I do to my Java application?

java - Share application specific data types with server and client

What is the difference between passing by reference in Java and passing a pointer in C?

debugging - Java appears hung

java - How to grant access for all authenticated users?

java - Why does my tomcat application's memory usage keep growing?

ADO.net principles in java

java - Swing GUI : Scrolling not updated when a JTable gets bigger

java - Run exe which is packaged inside jar file

Recommendations for a Java library to SMS internationally

java - How do I build an object that stores pictures?

java - String equality vs equality of location

Java Applet - Image Export Performance Issues

Remove end of line characters from Java string

java - Can I inject properties into a JPA Entity Listener

java - What rules are used for type inference when using Generics

Interface naming in Java

httpurlconnection - Java Authenticator on a per connection basis?

What are the OSS .net/java projects which has utilised most SOLID Principles in a rightway?

Mocking a URL in Java

java - Is there a SIMPLE example of How to use buckminster

java - How to instantiate an empty element with JAXB

java - How to convert old data to a new system? using sql or managed code?

java - before Warning login

java - What are the best practices when batch exporting from an application following DDD

io - Convert a StreamWriter to an OutputStream in java?

java - Is a "master preferences" class a good idea?

performance - Know of any Java garbage collection log analysis tools?

Eager java class loading

java - Eclipse RCP: Actions VS Commands

java - How to get the last 25 elements of a SortedSet?

java - Why can't I use my Jython class in an imported module?

swing - Java event handlers

java - Can I change the max-pool-size for connections, and what determines what I should set it to?

java - How to get some interactivity with a JTable

compilation - How to compile single/multiple java files without server restart? Is there any Eclipse plugin for the same?

java - How do I make controls autosizing in Qt designer?

jboss - Clover on Java EE Container

java - Microsoft Intellimouse Scroll Wheel Not Working with Netbeans 6.5 on Vista

java - Permissions checking in server-side API

graphics - Estimate pixels of proportional font in SVG or Java

exception - Java AWT - BufferedImage problems when using J2ME and J9

java - Measuring Documentation Coverage with Javadoc and Ant

java - collection of system properties using web browser

java - Inter Site Communication: How to communicate authenticate users registered on Site A to/with Site B?

Write a firefox plugin and access it from a java application

java - Deploying .jar file: Why can't I load icon files?

In Java, Prevent a field from being changed after being returned by instance method

java - HTTP Connection Pooling in GlassFish

How can I get started creating a Java web service?

java - JavaMail Question or Bug?

Java native array lengths

java - After checking out Subversion code into Eclipse, how do I get it to build?

Lightweight java.io.InputStream implementation that supports mark() & reset()

java - How to set a string's color

jodatime - Find DST transition timestamp with java.util.TimeZone

java - How do I interpret this JVM fault?

java - cocoon 2.1.x to 2.2.0 migration guide

java - Generating a Faces Context manually

java - What is the equivalent of TreeBidiMap in C#?

How to supply cookie to Java HTMLDocument?

java - Static context in enum definition

Java List with blank allowed

What is the best way for Adobe flex to communicate with Java?

java - Get the amount of bytes read in by javax.xml.stream.XMLStreamReader

java - EJB3 and manual hierarchy persistence

java - Best practice for controlling access to a ".internal" package

java - Find the closest server in the network

Learn Ajax and Java or rewrite in C#

java - Problems with XML/DOM tree rewriting using JDOM (ConcurrentModificationException)

Access a SharePoint website from a Java application with Kerberos authentication

Java newbie: Swing and displaying ASCII files

java - With a DAO pattern, do you ever expose the EntityManager or Session as a parameter?

java - Are getters and setters poor design? Contradictory advice seen





top