devxlogo

Tip Bank

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

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

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

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,

Informix ODBC Visual InterDev Hangs

Question: If I try to open an Informix table in Microsoft Visual InterDev, which uses SCO Vision Ultralite ODBC driver on an NT4/SP4 IIS4 Web server, Visual InterDev hangs. Using

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

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