public static void main(String args[]) {
String str = "12&32&ä½ç½®&yutye";
System.out.println("&å¨å符串ä¸åºç°çä½ç½®åå«ä¸ºï¼");
for(int i=-1; i<=str.lastIndexOf("&");++i)
{
i=str.indexOf("&",i);
System.out.print(i+"\t");
}
}
温馨提示:答案为网友推荐,仅供参考