|
21-40 of 5147
Previous
Next |
|
Understanding Java's Integer Pool Can Avoid Problems
by Shreyas Pai
When apparently-equal integer values fail an equality test, remember the integer pool.
|
|
Returning Zero-Length Arrays in Java
by Nagaraj Ramesh
Define a static final zero-length array and return that rather than null from methods that return array types.
|
|
Find All User-Defined Functions in a SQL Server Database
by Jaya Nehru
This query returns all the user-defined functions in the specified database.
|
|
Simple Script to Run Java Applications on Linux and Windows
by Bea Petrovicova
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
by Pavana Shireesha
Here's how to find the last Excel spreadsheet row or column containing data.
|
|
How to Detect JFrame Resizing
by Sterling Jordan
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
by Leonard Anghel
This code snippet creates a Validator that you can use to validate an XML document represented as a DOMSource.
|
|
How to Iterate Through All the Properties of a Class
by Deepak Choudhari
Using Reflection, you can easily iterate through all the properties of a .NET class.
|
|
Send a Cookie to the Server Using the setRequestProperty Method
by Leonard Anghel
You don't need a browser to send a cookie to a server. This tip shows you how to do it from Java code.
|
|
Calling JTidy from Java to Convert HTML to XHTML
by Leonard Anghel
This tip shows how to invoke the JTidy open-source project from Java code to convert an HTML file to XHTML.
|
|
How to Declare a java.util.Date in a EJB 3.0 Entity
by Leonard Anghel
To map a date value to a Java date in EJB 3.0, use this code.
|
|
XML Signature Core Validation Failure with Java and Apache Axis
by Chandan khanna
Added namespaces cause XML Signature core validation failures.
|
|
Writing a Parameterized SQL Query in EJB 3.0
by Leonard Anghel
Follow this DELETE statement example to write parameterized SQL queries in EJB 3.0.
|
|
Avoid Object Instantiation Within Loops
by Kulkarni Vasudeva
Creating new objects in loops can seriously damage performance.
|
|
Measuring A Program's Speed
by Zachary Edwards
The simplest way to measure the performance of a block of code (or an entire program) is to obtain the elapsed time. This tip shows you how.
|
|
Unzipping an Archive from a Servlet
by Leonard Anghel
This tip shows you how to unzip an archive from a Java servlet.
|
|
Write a Complex Query in Hibernate
by Leonard Anghel
This example shows how to use the findByExample method in Hibernate in conjunction with the SQL AND operator to find and log in a user given an email address and password.
|
|
Table Variables Are More Efficient than Temporary Tables In Some Cases
by Srinath MS
Using @TABLE rather than temporary tables improves performance for small tables that don't require indexes.
|
|
Inject an EJB 3.0 into the init() Method of a Servlet
by Leonard Anghel
This tip shows you how to inject an EJB 3.0 into the init() method of a servlet.
|
|
Rebuild All Table Indexes in a SQL Server Database with One Command
by Srinath MS
An undocumented stored procedure lets you refresh all the table indexes in a SQL Server database with a single command.
|
|
21-40 of 5147
Previous
Next |