Tip Bank

DevX - Software Development Resource

Display Integers Without Commas in JTables

If you have a JTable where the values displayed in a particular columnare Integer objects, it will display the Integer values with commas(e.g. 98765432 is displayed as 98,765,432) if these

DevX - Software Development Resource

Recursion in the Real World

Computer science sophomores learn that recursion can neatly solve complex problems, e.g., Hanoi rings, wildcard handling, and parsing. In practice, however, recursion can be problematic for several reasons. First of

DevX - Software Development Resource

Avoid Assignments Inside an If Condition

An assignment expression can appear inside an if condition: if (x = getval() ) { // do someting } The if condition is evaluated in two steps: first, the unconditional

DevX - Software Development Resource

The Linkage Type of Typedef Names

By default, a typedef name declared in the global scope has internal linkage. This means that separately compiled source files can’t refer to a typedef declared in another source file,

DevX - Software Development Resource

Informix Gives -155 Error

Question: I have been running Informix 7.22.TC1 successfully on Windows NT servers with the WebLogic 1.1 JDBC driver. On Web server restart, my application suddenly shows an error in connection

DevX - Software Development Resource

Error Code When Executing Program

Question: I am receiving an error code of 0400 when a program is executing. I have been told that this is an SQL error code; however, none of the books