Will Sean

Greenhorn
+ Follow
since Oct 05, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Will Sean

Hi, I am planning to do some J2EE programming in areas of EJB and JMS and I am wondering if the codes will compile and run on a standalone machine (no network). I am running Windows 2000 with 128MB of RAM.
Does anyone know? Thanks a lot.
Will.
Here is one way to format a date returned from sql queries:
// execute sql statement
ResultSet rs = stmt.executeQuery(queryString);
String[] hist = null;
int idx = 1;
hist[0] = "Date\Type";
// get resultset
while (rs.next()) {
Date tdate = rs.getDate("tdate");
String typetransaction = rs.getString("typetransaction");
hist[idx] = tdate + typetransaction;
idx++;
}
You can then display the hist array into a component, perhaps a JList or JTextArea.
23 years ago