Copyright 2020 © QuinStreet Inc. All Rights Reserved
DevX Tips Bank: Multimedia
vs. Using a StringTokenizer
It's not always safe to use String.split(String). Consider using the String …
Achieve Syntax Brevity with Anonymous Classes and Instance Initializers
Shorten your code using these techniques.
Execute DOS Commands from a Java Program
Use this tip to run DOS commands from your Java Program on Windows.
Comparing Constant Strings with String Variables
Avoid NullPointerExceptions by comparing string constants with string variables—not …
Prevent Users from Launching Multiple Instances of Your Application
Here's how you can make sure that only one instance of your application is running on any …
Understanding Java's Integer Pool Can Avoid Problems
When apparently-equal integer values fail an equality test, remember the integer pool.
Returning Zero-Length Arrays in Java
Define a static final zero-length array and return that rather than null from methods that …
Simple Script to Run Java Applications on Linux and Windows
This simple script lets you run a Java application on both Linux and Windows.
Get the Last Filled Row or Column in Any Excel Spreadsheet
Here's how to find the last Excel spreadsheet row or column containing data.
How to Detect JFrame Resizing
To know when a user is resizing a JFrame, catch the resize action using this tip's code.
Use a Validator to Validate a DOMSource
This code snippet creates a Validator that you can use to validate an XML document …
How to Iterate Through All the Properties of a Class
Using Reflection, you can easily iterate through all the properties of a .NET class.
Send a Cookie to the Server Using the
You don't need a browser to send a cookie to a server. This tip shows you how to do it …
Calling JTidy from Java to Convert HTML to XHTML
This tip shows how to invoke the JTidy open-source project from Java code to convert an …
How to Declare a java.util.Date in a EJB 3.0 Entity
To map a date value to a Java date in EJB 3.0, use this code.
Acceptable Use Policy
Terms of Service
California - Do Not Sell My Information