- 博客(3)
- 收藏
- 关注
原创 关于字符串的一些基础
String text = "sour"; System.out.println(text); System.out.println(text.length()); System.out.println(text.charAt(2)); System.out.println(text.toUpperCase());charAt指定取得字符串中的某个字符,索引从0开始。toUpperCase为将小写字符改成大写。 char..
2021-09-11 15:30:47 43
原创 字符串的深层复制
package base.taxt;import java.util.Arrays;class Clothes{ String color; char size; Clothes(String color,char size ){ this.color=color; this.size = size; }}public class array { public static void main(String[] args)...
2021-09-11 15:03:29 174
原创 基础复制字符串
package base.taxt;import java.util.Arrays;public class array { public static void main(String[] args) { //数组复制:使用System.arraycopy() // 下面是复制数组的原理。 int[] scores1 = {88, 81, 74, 22, 11}; int[] scores2 = new int[scores1.len...
2021-09-11 14:54:41 62
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人