Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Tasks and Techniques

Tasks and Techniques

Algorithms
Arrays
Classes
Controls
Data Types
Deployment
Input
  Output
Installation
Printing
Registry
String Manipulation
Threading
1-20 of 1853     Previous     Next
Java Tip: Optimization Technique for Lists
by Deepak Tyagi
An ArrayList that is not initialized with the proper size can slow your Java application's performance.
A Simple Password-Checking Routine
by Brian Abernathy
Here's a simple password-checking routine that ensures that the user-entered password matches specific password criteria.
Use Enumeration Instead of SAFEARRAY to Get an Array's Elements
by Shao Voon
C++'s SAFEARRAY is difficult to use. A better option is to enumerate an array's elements by repeatedly calling your own custom enumeration function and incrementing the element index.
Use Array Predicates to Simplify Searches
by Srinath MS
Predicates can often eliminate the need to write loops and iterations over arrays.
Deploying the CrystalReportViewer Control to a Production Web Site
by Bob Clegg
Follow this procedure to deploy a CrystalReportViewer control to a production ASP.NET web site.
Convert a Delimited String to a Generic List<string>
by Srinath MS
Split the string at the delimiter and then add each item to a new string list.
Create an Interface from a Class in Visual Studio
by Srinath MS
Use Visual Studio's refactoring features to extract class methods into an interface.
Using String.split(String) vs. Using a StringTokenizer
by Hrudananda Pattanaik
It's not always safe to use String.split(String). Consider using the String Tokenizer API instead.
A Quick Way to Generate Properties in Visual Studio C# Projects
by Srinath MS
Don't write property setters and getters by hand--generate them!
Adding Workdays to a Date
by Chad Juliano
To calculate a future or past date taking only working days into account, use this handy function.
Using the deployment Element's retail Attribute
by Nagaraj Ramesh
This attribute inhibits settings used to support web application development.
Comparing Constant Strings with String Variables
by Ritesh Patel
Avoid NullPointerExceptions by comparing string constants with string variables—not the other way around.
Launching an Asynchronous Operation Using BackgroundWorker
by Jayadev D
The .NET BackgroundWorker class makes it a snap to launch asynchronous operations on a separate thread.
Adding an Installer Class to a Windows Service
by Wan Omar
Follow these simple steps to add an installer class to your Windows service.
An OCX-less Progress Bar
by Brian Abernathy
Here's a simple way to add a functional progress bar without including the Common Controls library.
Prevent Users from Launching Multiple Instances of Your Application
by Greggory Payne
Here's how you can make sure that only one instance of your application is running on any given machine.
Converting Between List and String Types
by Srinath MS
You can convert .NET Lists to delimited strings—and vice-versa.
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.
Add "Copy To Folder" and "Move To Folder" to Windows Explorer's Context Menus
by Srinath MS
Customize your Windows Explorer context menu by adding these two convenient commands.
1-20 of 1853     Previous     Next
Sitemap