Tip Bank

DevX - Software Development Resource

File Paths

Question: How do I grab a file’s absolute path, given a filename? Answer: All you have to do is create a File object corresponding to the filename and call getAbsolutePath().

DevX - Software Development Resource

Batch files won’t run

Question: My batch files don’t run anymore. I’ve changed the association for editting them, and now that is the default action. Also, the “add” button is disabled in the edit

DevX - Software Development Resource

Java Virtual Machine Doesn’t Exit

You may have been surprised and frustrated to find that in some cases, the Java Virtual Machine (JVM) does not stop running when your application exits the static main() method.

DevX - Software Development Resource

Shortcut for if-else in JavaScript

JavaScript has C-like syntax. Therefore, it is possible to use the ?: conditional operator, which is a shortcut for the if-else block: Expression?true part:false part Try this example:

DevX - Software Development Resource

Full Context Searching

One of the hardest tasks until now has been supporting searches on text fields. As we know, indexes can’t be built on text fields and so searches on these fields

DevX - Software Development Resource

Unwinding the Stack

When an exception is thrown, the runtime mechanism first searches for an appropriate handler (a catch statement) for it in the current scope. If such a handler does not exist,

DevX - Software Development Resource

Dialog Boxes Cannot be Resized

Question: Is there any way to resize dialog boxes in Internet Explorer? Answer: No, there isn’t any way to resize dialog boxes in IE. The size of the dialogs displayed