-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
32 lines (31 loc) · 898 Bytes
/
Copy pathMain.java
File metadata and controls
32 lines (31 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package GradeSystemProjcect;
import java.util.*;
public class Main extends Object{
public static Scanner scanner = new Scanner(System.in);
/* main
* n aGradeSystem°µcontainsID(ID)¬ÝID¬O§_¦baGradeSystem¤º
*
* @throws NoSuchIDException -
* if the specified ID is not in aGradeSystem
*
* @throws NoSuchCommandException -
* if the specified ID is null
*
* Time estimate: O(1)
* Example:
* UI.checkID("123456789"); throws NoSuchIDException
* UI.checkID("962001051");
*
* Pseudo Code
* 1. construct an UI Object aUI. (handle NoSuchIDExceptions and NoSuchCommandExceptions)
*/
public static void main(String args[]) {
try {
UI aUI=new UI();
}catch(NoSuchIDExceptions nid){
System.out.println(nid.getMessage());
}catch(NoSuchCommandExceptions ncmd){
System.out.println(ncmd.getMessage());
}
}
}