# Search:

Type: Posts; User: billyjthorton

1. ## Thread: Ideas for sloving this problem.

by billyjthorton
Replies
9
Views
946

### 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. ## Thread: Code for Linear & Binary Search using ArrayLists

by billyjthorton
Replies
2
Views
562

### 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...

by billyjthorton
Replies
11
Views
355

So then what is the purpose of the not operator in that same method call? (I'm referring to the lines you have quoted)

by billyjthorton
Replies
11
Views
355

So when the method returns true, it converts it to false?

by billyjthorton
Replies
11
Views
355

Yea, that makes sense, but what about the original question and what's happening on that line...

by billyjthorton
Replies
11
Views
355

Here is the missing class:

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

by billyjthorton
Replies
11
Views
355

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....

by billyjthorton
Replies
11
Views
355

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,...

by billyjthorton
Replies
10
Views
460

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...

by billyjthorton
Replies
10
Views
460

The System.err.println(); is tripped and it won't add the elements...

by billyjthorton
Replies
10
Views
460

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...

by billyjthorton
Replies
10
Views
460

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.
*/...