Skip to main content

Circular Queue with JOptionpane

Language


IT COVER THE LOGICAL METHOD TO CREATE THE CIRCULAR QUEUE IN THIS PROGRAM I CREATED A MENU THAT WILL HELP YOU TO SELECT THE OPTION IN THE QUEUE. THIS IS THE V 1.0 SO I NEED YOU COMMENT . IN THE PUSH OPTION THE DATA IS PUSHING INTO AN ARRAY AND IT POPPING FORM IT . Author : Abhilash Joseph C Date : 11th August, 2009 Email : [email protected] Mob : 08050126851

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byAnonymous (not verified)on Sun, 12/13/2009 - 17:50

import javax.swing.JOptionPane; import java.util.*; import java.util.Scanner; public class ArraySize{ int size; int arr; Scanner input=new Scanner(System.in); public static void main(String[] args){ ArraySize number=new ArraySize(); number.showDialog(); } public void showDialog(){ size=new Integer(JOptionPane.showInputDialog("Enter Array Size:")); size(); } public void size(){ arr=size; int[] number=new int[arr]; System.out.println("The size of array is "+arr); for(int index=0;index
Submitted byAnonymous (not verified)on Wed, 08/11/2010 - 14:16

Hello there, I have tried your circular queue with the JOptionPane and it is working. Great Job. But I noticed that if a user deletes and item from the queue using the delete option, and then if he/she checks to see if it was really removed by displaying the queue again, the removed item is still there? Can you pls tell me what code to put in the display or delete methods to have the display operation updated???? Thanks a lot!!! Have a nice day and God bless. Pres

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.