Simple [Y/N] variable question

Ok, I know this is utterly stupid, but I was wondering,

Is there a wild card variable?
For instance, If I wanted to calculate the hitTest for my 15th bullet, instead of making the for loop, is there a wild variable that can act as an anything variable?

teamb[“enemy”+i] to a teamb[“enemy”+*] //where the hitTest will respond to any number where the * is w/o going to a for loop?

I thought this was possible since there’s that whole import java.util.*; command // I know this isn’t java.

I just need a yes/no. Or if this was a really stupid question - “You idiot, (yes/no).”