I am trying to set this up so I can call the array. I'm assuming this will actually work. How would I call this so it will read all the cars instead of just having to code the if (canSee()) for each car?
if (canSee(car))
{
setLocation(414,584);
} private String[] car =
{ "carGreen", "carBlue", "carRed" };
