OMG 发表于 2012-3-21 14:35 关键:判断重复,可以用到indexOf(char)=-1的知识 //字符串 String str = "adgkjjkkkkhgffftyfdaagjhy";