hi,
you could try this:
totalMatches = Integer.decode(vars.get("IDH_matchNr"));
int arrSize = totalMatches;
int[] myArray = new int[arrSize];
for (int i = 0; i < myArray.length; i++)
{
myArray[i]=Integer.decode(vars.get("IDH_g"+(i+1)));
}
Arrays.sort(myArray);
System.out.println("Minimum = " + myArray[0]);
System.out.println("Maximum = " + myArray[myArray.length-1]);
/(disclaimer.... I am a tester not a programmer)/
ZK
--
View this message in context:
http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4913980.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]