[quote:1iusbby5]
How to find the MAX of price displayed, variable "value" in the below site/code?
[/quote:1iusbby5]
i'm not able understand your question very well. I ran your code it is showing prices. so what is the problem?
yes its printing the prices. my qns was "How to find the MAX of prices displayed, variable "value" in the below site/code?"
I mean ,say if its displaying 10 cars with 10 prices , so which car has MAX price among those 10 cars.
make am array of all the prices and
from http://stackoverflow.com/questions/1806816/java-finding-the-highest-value-in-an-array
[code:3em7yrzi]
for (int counter = 1; counter < decMax.length; counter++)
{
if (decMax[counter] > max)
{
max = decMax[counter];
}
}
System.out.println("The MAX Price: " + max);[/code:3em7yrzi]