Some Java Stuff

Int vs Long vs Double vs REAL

string to int
Integer.parseInt(myString);

int to string
String.valueOf(myInt);

String to java.util.Date

SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
java.util.Date tradeDate = formatter.parse(dateString);

String strFormatDate = formatter.format(tradeDate);

java.util.Date to long
tradeDate.getTime();

java.util.Date to long to java.sql.Date
java.sql.Date sqlDate = new java.sql.Date(tradeDate.getTime());

StringTokenNizer vs split
String[] dateValues = value.split("-")