My problem occurs during the for loops to read in the values from the file into my scores array. The program reads in and prints the first 6 values or 2 lines of ints, but then I get...
Type: Posts; User: mju516
My problem occurs during the for loops to read in the values from the file into my scores array. The program reads in and prints the first 6 values or 2 lines of ints, but then I get...
I mean that the user picks a value to search for in the array. My problem is in the search method
Writing a binary search for an array of random ints. When in comes time to pick a target value and search for it, the program will not identify the number. If you run it you'll see what I mean
...
Thanks a lot
**Update**
I just added the following code to my main program, just to see if I would get the same error.
if (1<2<3)
System.out.println("Yay");
I got the exact same error, so I'm...
Okay so my problem occurs when I am trying to compare numbers that I have sent into method. In all six cases, I get "error: bad operand types for binary operator '<' ", and is always pointing at the...