string comparison
Use .equals(obj) method instead of ==.
(8/26/2009)
Convert int to string in Java
String s = Integer.toString(value);
List operation
ArrayList (java.util.ArrayList) is similar to list of scripting languages. Vector is similar and thread safe, but slower.
ArrayList
list;
(6/25/2009)
What is @Test ?
@Test is an annotation used by JUnit.
Annotation is a Java mechanism that was introduced with Java 1.5. Annotations can be applied to a program's declarations of classes, fields, methods and other program elements.
isAnnotationPresent().
@Test annotation was introduced with JUnit 4. @Test annotates a method so that JUnit can find test cases. In other words, JUnit4 doesn't require test cases to inherit TestCase class nor to be named as testXYZ.
(7/9/2009)