-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
28 lines (26 loc) · 754 Bytes
/
Main.java
File metadata and controls
28 lines (26 loc) · 754 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
import java.io.IOException;
import java.util.Scanner;
/**
* Created with IntelliJ IDEA.
* User: Manu
* Date: 11/10/13
* Time: 10:17 AM
* To change this template use File | Settings | File Templates.
*/
public class Main {
public static void main(String args[]) throws IOException {
Pqueue pq = new Pqueue();
int ch;
do{
System.out.println("1.ENCODE\n2.Display Table\n3.Exit");
System.out.print("Enter your choice: ");
Scanner in = new Scanner(System.in);
ch=in.nextInt();
switch(ch){
case 1: pq.encode(); break;
case 2: pq.display(); break;
case 3: System.exit(0);
}
}while(ch!=4);
}
}