Sunday, 11 August 2013

Set all except first to false

for(int i = 0; i < options.length; i++) {
    if(found)
        options[i] = false;
    else
        found = options[i];
}