How to get all option list using Selenium web driver ?

@Test
public void GetAllOptionsList() throws Exception
{
driver.get("
http://seleniumsubbu.blogspot.in/");
Thread.sleep(3000);
List<WebElement> allCities=new Select(driver.findElement(By.id("edit-submitted-country"))).getOptions();
for(WebElement city:allCities)
{
System.out.println(city.getText());
}

}