java吧 关注:1,249,447贴子:12,731,000
  • 1回复贴,共1

求解 codingbat 小题

只看楼主收藏回复


Return a version of the given string, where for every
star (*) in the string the star and the chars immediately to its left and right
are gone. So "ab*cd" yields "ad" and "ab**cd" also yields "ad".
starOut("ab*cd") → "ad"
starOut("ab**cd") → "ad"
starOut("sm*eilly") → "silly"
public String starOut(String str)
{
}


IP属地:北京1楼2013-03-27 15:20回复
    没人来解题么?


    IP属地:北京2楼2013-03-27 15:25
    回复