Check out DateFormat and its subclass SimpleDateFormat. In essence, you do the following:
- create a (Simple)DateFormat that will only use the day of week
- use its parse method to create a Date
- use its format method to turn it back into the week day String
In short code:
You'll have to experiment a bit with repeating the day of the week
pattern symbol; if you repeat it enough it will work the way you want.