Unexpected token:int
in
Programming Questions
•
1 year ago
for (human h:humans)
{
//float d=PVector.dist(hlocation, h.hlocation);
if ((d > 0) && (d < neighbourdist)) {
hum.add(h);
}
}
int i=int(random(hum.size());
int j=int(random(hum.size());
human f1=(human)birds.get(i);
human f2=(human)birds.get(j);
float d=PVector.dist(f1, f2);
if (d > 3.80)
{
topologicaldistance(humans);
the error is where i have higlighted but doesnt know how to resolve please some one help me
1