Can't get vector indexOf working

I have a small little method that is trying to search a vector for a specific string to get its index in the vector. Below is the code for the method...
public String getMinRoundTrip(){
          String min = "Minimum";
          int minIndex = -1;
          minIndex = received.indexOf(min);
          System.out.println("DEBUG: " + minIndex);
          String outLine = (String) received.get(minIndex);
          int firstIndex = outLine.indexOf("Minimum");
          int secondIndex = outLine.indexOf(", Maximum");
          minRoundTrip = outLine.substring(firstIndex, secondIndex);
          return minRoundTrip;
I know that "Minimum" exists in the vector, but the index is always coming out with -1, so it is not being found. What am I doing wrong here? Any help would be appreciated.
Thanks in advance!
_george                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

No, it is definitely there. I have printed the vector out and could see it in the output. I have also tried searching for other words in the vector and still get -1 returned as the index value.
This is how I am populating the vector...
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String line;
received = new Vector();
while((line = in.readLine()) != null) {
System.out.println("DEBUG: " + line);
received.add(line);
It seems to populate just fine. I don't get this?
_george

Similar Messages

Maybe you are looking for

  • Create and Handle empty msg in JMS receiver Adapter

    Hi, In my interface scenario, I will have to create a msg output if certain conditions are met and should not create a msg if otherwise.. I am using a Graphical Mapping and the receiver is JMS. I have some questions.. 1. Using Graphical mapping, Can

  • Different database in different languages....

    Hi Experts,      I am facing an unusual problem.In my project,there are two languages English & French.I am doing the coding by logging in English.But the database maintained for the same query in French is different.Now the testing is being done in

  • Add confirmation on button pressing

    hi. I want to add 'Yes/No' dialog when user presses a button on standart OAF page. Is it possible?

  • Can't connect to itunes to sync

    I have just upgraded to IOS612 for my iPad Model 02 14.0 and Itunes to 11.02.26 and now nothing syncs - even my pc does not recognise my iPad. I need help please? Thanks

  • Datasource via function module

    Hi, I am building a function that is due to be used by a Datasource (via Function Module). This function uses table WDRD. It applies to this table a code that needs the use of an internal table for the calculation (for intermediary calculation storag