devxlogo

Tip Bank

DevX - Software Development Resource

Variant Records

Question: Does Java support an equivalent to the Pascal variant record or C union? I need to port some code to Java that uses these constructs. Answer: No, Java does

DevX - Software Development Resource

printing all the source code

Question: Is there any way to print all the source code in an application or library? Answer: You can use a product called PowerDoc to achieve this, or you could

DevX - Software Development Resource

Linked List

Question: I need some help with this C++ add function.It adds a new node to the end of the list. I need it to add it to the beginning of

DevX - Software Development Resource

Convert function

Question: I am trying to do the SQL statements on the client side. Because I have declare int in the database, I need to convert the column before I can

DevX - Software Development Resource

Positioning System.out.print

Question: How can I position the System.out.print cursor when printing to the DOS window? Specifically, how can I print to specific positions on the DOS window without printing one continuous

DevX - Software Development Resource

How standard is the string class ?

Question: We may want to use the C++ string class if itis specified as part of some open standard andis not just provided by the g++ compiler. Is the string

DevX - Software Development Resource

Cloning: Shallow vs. Deep Copies

Question: I am seeking to clone an object that contains anarray of the type float[][] which in turn contains primitive types. Using super.clone() and a clonable interface in the class

DevX - Software Development Resource

Boolean casting

Question: Why am I getting a type conversion error with the following method: public synchronized void setVisible(Boolean b) { setLocation(50, 50); super.setVisible(b);} Answer: You do not mention what setVisible method

DevX - Software Development Resource

Access controls inside a tab object

Question: How can I access the controls placed on a tabpage in a tab object (for example, from a user event on a sheet window containing the tab object, to