|
if(count==list2.size()-3) means
the count value will be added if one value or more values are matchable for every loop
this count should be added by using count++
ie for every 4 values (which exist in list1) and for every 4 values (which exist in list2)
suppose 2 values were there means count will be 2 for that loop
if(count==list2.size()-3) means
in the above one list2.size()-3 is
the actual value of list2.size() is 4
if we subtract 1 value from that one is 3
so
if 3(this is count value)=3 (this is list2.size()-3) value
{
System.out.println("The level of the prize is THREE"+count);
}
SO IN THE ABOVE CODE IN WHICH FOR LOOP I HAVE TO PLACE THE count++
Last edited by raj reddy : 04-23-2008 at 05:16 PM.
|