Search:

Type: Posts; User: billyjthorton

Search: Search took 0.17 seconds.

  1. Replies
    9
    Views
    4,400

    Re: Ideas for sloving this problem.

    Also, think about "int" math. When you have a problem, take this for example


    int a = 4/3

    what value do you think will be returned? If you thought "1", then your right.
    In the same respect...
  2. Re: Code for Linear & Binary Search using ArrayLists

    Help me understand your question, do you want to search an array using a binary search? I've never known binary searches to use array lists unless it takes the data it is to sort and puts it in an...
  3. Replies
    11
    Views
    1,461

    Re: Help please!

    So then what is the purpose of the not operator in that same method call? (I'm referring to the lines you have quoted)
  4. Replies
    11
    Views
    1,461

    Re: Help please!

    So when the method returns true, it converts it to false?
  5. Replies
    11
    Views
    1,461

    Re: Help please!

    Yea, that makes sense, but what about the original question and what's happening on that line...
  6. Replies
    11
    Views
    1,461

    Re: Help please!

    Here is the missing class:



    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package railroadwithstacks;
  7. Replies
    11
    Views
    1,461

    Re: Help please!

    but how does it know to move something to the holding track? All it is is checking that statement's Boolean value (if its true or false) and doesn't actually do the operation....
  8. Replies
    11
    Views
    1,461

    Help please!

    Hello all,

    I was creating a program for a homework assignment and I came across a problem. The assignment is a simulation of a train track. It gives you an array of train cars and using stacks,...
  9. Replies
    10
    Views
    1,613

    Re: HELP PLEASE!

    I don't know why it happens. I was hoping someone could tell me. Logically, it all seems to make sense. Length is the number of elements in the array, size is the capacity of the array if that...
  10. Replies
    10
    Views
    1,613

    Re: HELP PLEASE!

    The System.err.println(); is tripped and it won't add the elements...
  11. Replies
    10
    Views
    1,613

    Re: HELP PLEASE!

    Thats what I get when I print the code, which is the problem. I want the array to grow when you add more members to the array than are currently in the array. For example if you have an array of size...
  12. Replies
    10
    Views
    1,613

    Re: HELP PLEASE!

    I did not include a way to test the code. I should have, but it would be pretty simple:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */...
  13. Replies
    10
    Views
    1,613

    HELP PLEASE!

    Hello,

    I am writing a class (pretty much an ADT) for an array implementation. I wrote the code and it both compiles and works, but in the process, I have encountered a problem. This problem is...
Results 1 to 13 of 13