Tip Bank

DevX

Find Out Who Is Accessing Your ServerSocket

Use this code to find out who is accessing your ServerSocket: Socket aSock = myServerSocket.accept();System.out.println (“Connection from : ” + aSock.getInetAddress().getHostAddress() + ‘:’ + aSock.getPort());

DevX

Close and Save All Except Your Current Window

When you’re working on large projects, it’s common to have a bunch of open windows cluttering your desktop. Closing all the windows you’re not working on is tedious. To automate

DevX

Warning Signs in SQL Code

SQL statements defined “inline” in source code are a warning sign that the implementation or the project design itself probably includes some land mines. If you see something like: String

DevX

Handling Events in BREW

BREW is very event-driven. As such, an application will get many events that it may not be expecting. Controls talk to themselves using events. The system sends events to the