4 Replies Latest reply: Feb 13, 2007 6:54 AM by 807606 RSS

    like Nodelist, but create temp String for checking

    807606
      Hi,
      how do I store the previous contents of the command String in the previousCommand string in the loop so that I can use my method to compare them?
      for ( int i=0; i< totalTstCount; i++){
            for ( int j=0; j< totalTstCount; j++){;
                 // store the previous command to comapre TSTs
                 String previousCommand = command;
                 if ( i == 0) {
                      System.err.println("Issuing first FSI.....");
                      response = sitaIssue.issueFsi(response);
                 }
                 else if ( (j > 0) && (sitaIssue.isFsiRequired(previousCommand, command))) {                              
                      System.err.println("Issuing another FSI.....");
                      response = sitaIssue.issueFsi(response);
                 }
             }
      }