㈠ java中如何顯示字元串位置
java中輸出字元所在位置可以使用indexOf()函數例子:System.out.println("abcd".indexOf("b"));結果輸出1返回b字元在字元串abcd中第一次出現的位置