devxlogo

Tip Bank

Named Parameters in C++

Named parameters allow you to send function arguments in any sequence. This is very useful when your functions have long parameter lists. Named parameters are not supported in C++, but

Return the Absolute File Path of a Class

This code retrieves the local absolute path of the class file containing the specified class name, as prescribed by the current classpath. import java.net.URL;public class FilePath { public static String

Determine Whether a Combobox Is Being Loaded

Say you have a combobox being loaded at form initialization from a database and you have code in the combobox’s SelectedIndexChanged event. This may cause unwanted exceptions: Private Sub LoadComboBox()

Two Methods to Remove Duplicates in an ArrayList

Here are two methods that allow you to remove duplicates in an ArrayList. removeDuplicate does not maintain the order where as removeDuplicateWithOrder maintains the order with some performance overhead. The