Supreme Court Justice John Paul Stevens says he "will surely" retire while President Barack Obama is still in office.