Creating Serializable JavaBeans
This free, multimedia tutorial shows you how to use IBM's Rational Application Developer (IRAD) 6.0 to create a simple, yet somewhat salacious, JavaBean.
If you found something helpful here, please do your part and help support the site. Link to us, buy some books, support our sponsors, tell your developer friends about us, and remember: Happy Java!
package com.examscam.common;
public class Timer implements java.io.Serializable {
private long startTime;
public Timer(){}
public void start() {
startTime = System.currentTimeMillis();
}
public long getStartTime() {
return startTime;
}
public long getElapsedTime() {
return System.currentTimeMillis() - startTime;
}
public void reset() {
startTime = System.currentTimeMillis();
}
}
yeah the typing machine sounds is pretty annoying... i hated it :x
kalElx 3 years ago 4
Nice tutorial but the typing voice is pretty annoying.
WithNoLife 3 years ago 2