Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
java x 8
Member Avatar for saggykulji

import java.util.Scanner; import java.util.Deque; public class MyDeque { private int maxsize; private int [] queArray; private int front; private int rear; private int nItems; public MyDeque (int s) { maxsize = s; queArray= new int[maxsize]; front=0; rear=-1; nItems=0; } public void insertFront(int j) { if (front==0) front=maxsize; queArray[--front]=j; nItems++; } …

Member Avatar for javaAddict
0
538
Member Avatar for saggykulji

public class MyDeque { private int maxsize; private int [] queArray; private int front; private int rear; private int nItems; public MyDeque (int s) { maxsize = s; queArray= new int[maxsize]; front=0; rear=-1; nItems=0; } public void insertRear(int j) { if (rear==maxsize-1) rear=-1; queArray[++rear]=j; nItems++; } public void inserFront (int …

Member Avatar for white feather
0
173
Member Avatar for saggykulji

i am working on Deque class which is wrapped arond array....jus like the circular array works. How can i prompt the user to decide the size???

Member Avatar for saggykulji
0
77
Member Avatar for saggykulji

1. Create a doubly linked circular list in Java. Each element in the list contains a data which is an object of a Student class and two links, next and previous. 2. The Student class contains two class fields only: • name - The first and last names are in …

Member Avatar for peter_budo
-2
125
Member Avatar for saggykulji

suppose i created a dequeue class, with methods like insertFront() insertRear() removeFront() removeRear() peekFront() peekRear() isEmpty() isFull() how can i wrap it around and array ?? Will it work the same way as circular does?

0
62
Member Avatar for saggykulji

In java how to prompt the user to enter the phone number (xxx- xxx- xxxx) format in dialog box? and take the number and Display it in (xxx xxx xxxx) instead of dashes i want spaces. how do i do it? I try to enter the number but it wont …

Member Avatar for kvass
0
74