Add: a5 close #9
This commit is contained in:
15
assignment5/Question4/TrainSpeedChange.java
Normal file
15
assignment5/Question4/TrainSpeedChange.java
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* The TrainSpeedChange class is used to test the speed of the program.
|
||||
*/
|
||||
public class TrainSpeedChange extends Exception {
|
||||
// generate serial ID by class name
|
||||
private static final long serialVersionUID = TrainSpeedChange.class.getName().hashCode();
|
||||
|
||||
public TrainSpeedChange() {
|
||||
super();
|
||||
}
|
||||
|
||||
public TrainSpeedChange(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user