Professional Documents
Culture Documents
Comp Final
Comp Final
int arrl:
int lim, front, rear;
public Dequeue(int 1) {
lim = l;
front =
rear =
0;
arr new int[l];
else
return9999;
import java.util.scanner;
public class Printjob {
protected int job[ ]:
1/ to point to first & last element
protected int front, rear
in the job
protected int Capacity;
protected int Newjob;
public Printjob() {
Capacity = 20;
front -1;
rear =1;
createJob();
boolean isEmpty() (
return front == -1;
try
id =
in.nextInt ()
catch(Exception e)
System.out.println(e);
Newjob = id;
if ( rear == -1){
front rear =0;
job[rear] = id;