|
number comparisson help
I've been working on this for a while and can't get it to work. Basically it's a program that stores sale amounts into an array. Then asks the user to enter an amount, then prints the sales people who exceeded the amount. Here is my for loop.
public void salesCompare()
{
for (int i=0; numCompare < this.sales[i]; i++)
{
System.out.println(this.sales[i]);
}
}//salesCompare()
numCompare is the user entered number and sales[] is obviously my array. When I run it, nothing happens. Any suggestions?
|