devxlogo

Tip Bank

Autoboxing/Unboxing in J2SE 1.5

Before J2SE 1.5, Java had primtive data types with wrappers around them, so programmers had to convert from one type to another manually: public void manualConversion() {int a = 12;Integer

Using Multiple Breakpoints on a Single Code Line

With the release of Microsoft Visual Studio.NET, you can now set multiple breakpoints on a single line. Example 1: Breakpoints on expressions in the for loop statement: for (InitExpression; ConditionExpression;

How to Set Topmost Forms

Setting topmost forms is easier with .NET than with previous Windows languages, since you no longer have to refer to an API call. Simply setting the .topmost form property to

Write to a Perl File Using Flock

In his tip “Locking a File With the Perl Flock Function,” Steve Renaker’s example opens a file without specifying read or write. While this will successfully open a file for