詹子宜Java方法length(),charAt(),EXCEL函數LEN,MID

public class Main { /*詹子宜2022.12.26德銘財金甲*/ public static void main(String[] args) { String a = "狗吃屎,貓抓鼠,老猴愛作怪", b =""; System.out.println("原來: " + a); int c = a.lenget(); System.out.println("長度: " + c); for (int i = 0; i < c; i++) b = a.charAt(i) + b; System.out.println("反向: "+ b); } }

留言

這個網誌中的熱門文章

詹子宜產業分析作業:期貨業務員2024

詹子宜python, input, str, float

詹子宜tkinter視窗函式庫Entry工具widget