黃柏諺Java方法length(),cherAt,EXCEL函數LEN,MID
Java方法length(),cherAt,EXCEL public class Main { /**/ public static void main(String[] args) { String a = "狗吃屎,貓抓鼠,老猴愛作怪", b = ""; System.out.println("原來: " + a); int c = a.length();/*計算字串長度length()方法*/ System.out.println("長度: " + c); for (int i = 0; i