Please tell me the correction i need to make to run this code correct, it is showing run time error

import java.util.*;
public class main {
public static void main(String args[]) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
DequeueCoefficient q = new DequeueCoefficient(n);
for(int i = 0;i<n;i++){
q.enqueue(i);
}
for(int i = 0;i<n;i++){
System.out.println(q.dequeue());
}
}
}

class StackUsingArrays {
public int size;
protected int data[];
protected int top;
public StackUsingArrays(int capacity) throws Exception{
if(capacity<1){
throw new Exception(“invalid capacity entered”);
}
this.data = new int[capacity];
this.top = -1;
}
public int size(){
return this.top+1; // this will return the size of the current stack
}
public boolean isEmpty(){
return this.size() ==0;
}
public void push(int element) throws Exception{
if(this.top == this.size()){
throw new Exception(“Stack is full”);
}
this.top++;
this.data[this.top] = element;
}
public int pop() throws Exception{
if(this.size() == 0){
throw new Exception(“Stack is empty”);
}
int element = this.data[this.top];
this.data[this.top] = 0;
this.top–;
return element;
}
public int top() throws Exception{
if(this.size()==0){
throw new Exception(“Stack is Empty”);
}
int element = this.data[this.top];
return element;
}
public void display() throws Exception {
for(int i = this.top();i>=0;i–){
System.out.print(this.data[i]+", “);
}
System.out.println(” End ");
}
}

class DequeueCoefficient{
private int n;
private StackUsingArrays primary;
private StackUsingArrays secondary;
public DequeueCoefficient(int capacity) throws Exception{
this.n = capacity;
this.primary = new StackUsingArrays(this.n);
this.secondary = new StackUsingArrays(this.n);
}
public void enqueue(int data) throws Exception{
while(!primary.isEmpty()){
secondary.push(primary.pop());
}
primary.push(data);
while(secondary.size != 0){
primary.push(secondary.pop());
}
}
public int dequeue() throws Exception{
return this.primary.pop();
}
public int front() throws Exception{
return this.primary.top();
}
public void display() throws Exception{
this.primary.display();
}
}

Hey @8006366388,
I have corrected your code. https://ide.codingblocks.com/s/152299
Error on lines 12 and 88. I have commented the errors.