Java

POJO (Plain Old Java Object): The simpler...the better.

A POJO is simply an object built using a Java class that does not implement any special interfaces such as those defined by the EJB 2 framework. An example of a POJO is a class composed by only: Properties, representing the object’s state. Getter and setter methods for the properties. Business methods, representing behaviour. Some properties can represent associations with other POJOs. Here is an example of implementation of the Person entity using a POJO:

How to force one or more metacharacters to be treated as ordinary characters in a Java Regular Expression (RegEx)

When using RegEx in Java you might face the need of treating one or more metacharacters as ordinary characters. As a reminder the metacharacters in a Java RegEx are: ([{^$|)?*+. If you want to treat them as ordinary characters you have two options: Escape the metacharacter with a backslash, Enclose the whole string that contains metacharacters within Q and E Q means: “quotes all characters until E”, while E ends the quotes.

Using proguard obfuscator through the Wireless Toolkit

When you develop an application you might want to protect your code. A good way to accomplish this is using obfuscation. Proguard is a good open-source tool you can use for this purpose. To use it through the Wireless Toolkit (WTK), after downloading Proguard, you need to tell the WTK where it can find the obfuscator. You can do that by editing the file ktools.properties that you can find under %WTK%wtklibWindows, where %WTK% is the root directory of the Wireless Toolkit.