A circular Queue can be Implemented by using the following core code
Insertion:
 if(count<n)  
    {  
    System.out.println("Enter the element to be added:");  
    item=Integer.parseInt(get.readLine());  
    a[rear]=item;  
     rear++;  
    count++;  
}
Get the Complete Source Code to Implement Circular Queue in Java from www.codeuniverse.tk