Welcome to the Ranch!
If you're going to post code, please UseCodeTags (←click on the link to learn how to do that). Also, you should try to format your code properly to make it easier for other people to read it. I find the Google Java Style Guide a good reference. There's also the JavaRanch Style Guide.
joey shertz wrote:The only positions the code finds are the arrays listed, ie 10,20,30,40,50, etc. I want to find a way to be able to find the position of any number. ( like 44, 56 etc )
How do you expect to find something that's not in your array?
Lines 5-15 of your code listing determine which values you will be able to find. How can you expect to find numbers like 44 and 56 if you don't put them there?
joey shertz wrote:Ok I worded it wrong. Is there a way to add all my 1-100 numbers w/o adding 100 arrays?
"You keep using that word. I don't think it means what you think it means" - Inigo Montoya in "The Princess Bride"
You only have one array. You mean to say elements of the array.
Since you have already learned about the for-loop, can you think of a way you can use one to assign increasing values to each successive element of your array? That is, you first declare an array of 100 integers (instead of the 11 that you're declaring now). Then you use a loop to set the value of each of those elements to a number that's bigger than the previous one, if there is any. The only case where there is no previous element is, of course, for the very first element (index = 0).
You need to assign increasing values to your array elements because that's the only way a binary search will work.