JAVA .length与.length()
摘要:
获取数组长度 int[] nums = new int[10]; int n = nums.length; 获取字符串长度 String word = new String(“hello"); int n = word.length(); 因为 .length获取属性 .length()调用方法。 阅读全文
posted @ 2021-06-15 18:00 少喝热水 阅读(141) 评论(0) 推荐(0)
浙公网安备 33010602011771号