I am working on making an interpolation search to search through a 2d array of bookings for a flight, but due to the values being stored as strings in the 2d array, as there are strings such as the customer name, I can't use the less than or greater than comparators to compare the value of the booking ID which I want to search.
I've tried using the parseInt method to read the value as an int but I still get this error error
code:
public void searchBookings(String [][]bookings, String bookingToSearch){
//Static column will be searched (bookingID)
int column = 0;
int highEnd = (bookings.length-1);
int lowEnd = 0;
while (bookingToSearch >= Integer.parseInt(bookings[lowEnd][column])){}