Circular Queue using JOptionpane Code Java