To find a particular dropdown box element:
Select gender = new Select(driver.findElement(By.id("gender")));
To get the list of all the elements contained in the dropdown box:
for(int j=1;j<3;j++)
System.out.println(gender.getOptions().get(j).getText());
To select it through visible text displayed when you click on it:
gender.selectByVisibleText("Male");
To select it by index (starting at 0):
gender.selectByIndex(1);