Search:

Type: Posts; User: zkidkid

Search: Search took 0.18 seconds.

  1. Replies
    17
    Views
    1,719

    Re: Deque array base assistant

    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)...
  2. Replies
    17
    Views
    1,719

    Re: Deque array base assistant

    NullPointer at this code: queArray[i].toString()
    your queArray[i] == null.

    Please put your whole code.
    It's easier than you think.
  3. Replies
    2
    Views
    761

    Re: Abstract Method

    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...
  4. Replies
    4
    Views
    1,153

    Re: How to convert INT to String.

    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...
  5. Replies
    17
    Views
    1,719

    Re: Deque array base assistant

    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 &...
  6. Replies
    17
    Views
    1,719

    Re: Deque array base assistant

    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.
  7. Replies
    17
    Views
    1,719

    Re: Deque array base assistant

    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.
    ...
  8. Replies
    3
    Views
    895

    Re: help with error

    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.
  9. Replies
    2
    Views
    857

    Re: finishing java assignment drop

    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.
    ...
  10. [SOLVED] Re: super() function how to make my program work without it

    stack = new Deque();
    I think it should be:
    stack = new ArrayDeque();
    or
    stack = new LinkedList();
  11. Re: Java Server Architect / Principal w/ NoSQL experience in SF for profit-turning startup

    Hi I am working at backend developer.
    I have experienced in java, j2ee, rest, servlet, Lucence/Solr, ElasticSearch, MongoDB.
  12. Re: Is there anyway to use a Do While statement in this program?

    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,...
Results 1 to 12 of 12