java6/7/8 selection