Hi @gto11520,
Let image that you have a fixed array for 5 items. [][][][][][]
You put 1 front(value 1) & 1 rear (value2) with your code then you will have:
public void insertFront(Item item)...
Type: Posts; User: zkidkid
Hi @gto11520,
Let image that you have a fixed array for 5 items. [][][][][][]
You put 1 front(value 1) & 1 rear (value2) with your code then you will have:
public void insertFront(Item item)...
NullPointer at this code: queArray[i].toString()
your queArray[i] == null.
Please put your whole code.
It's easier than you think.
An abstract method will placed in abstract class. For each direct subtype from abstract class should implement these abstract method. So:
"So would like to know what is the purpose of calling it if...
First, you need an array to map number to string, like this:
String[] number = {"zero","one","two","three","four","five","six","seven","eight","nine"};
And then you need to split your string to...
Please put your code so that we could help.
at the first step, you could only implement queue(E) and dequeue() method to get understand clearly first and then implement others.
it would be easier &...
Yes if you "flow control" mean to make sure "front" always lower than "rear" ( front <= rear)
For better implement, I also suggest you take a look of LinkedList.
At the first time:
When we insert front, your front = max_size -1
Then we insert rear, your rear = 0
Then look at your toString():
for(i = front; i <= rear)
-> front > rear -> print nothing.
...
No, I think he was so kind enough.
Your error is really basic and the compiler has told you what it's and also how to fix.
Hi,
Maybe your need a map to store your image & string.
ex:
Map<Image,String> collections = new HashMap<>();
collections.add(img1,"text1");
collection.add(img2,"text2");
... so on.
...
stack = new Deque();
I think it should be:
stack = new ArrayDeque();
or
stack = new LinkedList();
Hi I am working at backend developer.
I have experienced in java, j2ee, rest, servlet, Lucence/Solr, ElasticSearch, MongoDB.
Your code really dirty, let make it more clearly & reusable instead.
Example:
Make a function to show UI
well, all you need to do now is init your list of question, option, & optionAnswer,...