Tip Bank

DevX - Software Development Resource

Use BigDecimal Instead of Double Data Type

In certain situations, you need to show the exact decimal values. If you use the double data type, you need to truncate the decimal values. To avoid truncation while obtaining

DevX - Software Development Resource

Making Complex Arrays

Sometimes you need a vector or list of associations. An association is a pair of values that has some link in the problem model. For example, a student and grade

DevX - Software Development Resource

Escape Sequences in .NET Resource Files

Displaying strings from.NET resource files may be a puzzle if the strings include escape sequences. For example, take the newline (linefeed) character. Suppose you want to display a hardcoded text

DevX - Software Development Resource

Reading Multiple Variables Simultaneously

Suppose you want to input name, age, and grade from the console. You may write: string name,int age;int grade;cin >> name;cin >> age;cin >> grade; But it’s also possible to

DevX - Software Development Resource

Signing a .jar File in Java

Everyone wants their applications to be secure and to disallow unauthorized changes. Java makes this task relatively easy for developers and deployment teams with the jarsigner tool. Assuming you have