Tip Bank

DevX

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

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

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

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

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