摘要: 常用类 包装类 包装类的分类 1.针对八种基本数据类型相应的引用类型一包装类。 2.有了类的特点,就可以调用类中的方法。 | Tables | 基本数据类型 | 包装类 | | | : : | | | | boolean | Boolean | | | char | Character | | | 阅读全文
posted @ 2023-03-31 22:13 Q1uuuu 阅读(38) 评论(0) 推荐(0)
摘要: package com.someexercise; import java.util.Arrays; public class restring { /* 字符反转 将字符串中指定部分进行反转。比如将"abcdef"反转为"aedcbf" 编写方法 public static String reve 阅读全文
posted @ 2023-03-31 22:11 Q1uuuu 阅读(34) 评论(0) 推荐(0)
摘要: package com.arrays_; import java.util.Arrays; import java.util.Comparator; public class ArraysExercise { public static void main(String[] args) { /* 案 阅读全文
posted @ 2023-03-31 20:33 Q1uuuu 阅读(60) 评论(0) 推荐(0)
摘要: package com.arrays_; import java.util.Arrays; import java.util.Comparator; public class ArraysSortCustom { public static void main(String[] args) { in 阅读全文
posted @ 2023-03-31 19:23 Q1uuuu 阅读(33) 评论(0) 推荐(0)
摘要: package com.stringbuffer_; import java.math.BigDecimal; import java.util.Scanner; public class StringBufferExercise01 { public static void main(String 阅读全文
posted @ 2023-03-31 17:56 Q1uuuu 阅读(20) 评论(0) 推荐(0)