Can anyone please let me know how to remove duplicate values from 

```
String s="Bangalore-Chennai-NewYork-Bangalore-Chennai"; 

```

and output should be like

```
String s="Bangalore-Chennai-NewYork-";

```

using Java..

Any help would be appreciated.