摘要: ##源代码 package 十六进制字符转成整数; /** * @author 邓雪松 (づ ̄ 3 ̄)づ) * @create 2021-10-20-16-41 */ public class Demo { public static void main(String[] args) { Strin 阅读全文
posted @ 2021-10-20 18:08 ╰(‵□′)╯ 阅读(280) 评论(0) 推荐(0) 编辑
摘要: ##看代码和解释即可 package 猜生日号数; import java.util.Scanner; /** * @author 邓雪松 (づ ̄ 3 ̄)づ) * @create 2021-10-20-15-41 */ /* 分析: 因为1~31这些数是可以用5位的二进制表示的,因为16+8+4+2 阅读全文
posted @ 2021-10-20 16:21 ╰(‵□′)╯ 阅读(74) 评论(0) 推荐(0) 编辑
摘要: ##首先是StringBuffer的append()方法的解释 ##然后是reverse()方法 ##然后是.append()方法 ##toString()方法就是转为字符串吧 完 阅读全文
posted @ 2021-10-20 15:31 ╰(‵□′)╯ 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 先上图 在来看JDK中对于这些方法的描述 1..close()方法 2..hasNextLine()方法 3..nextInt()方法 ##感觉不用解释了 ##补充点得了如下图 本节完 阅读全文
posted @ 2021-10-20 14:33 ╰(‵□′)╯ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 重点代码讲解 System.out.println(new Random().nextInt(max-min)+min); ·首先看JDK对Random类的nextInt()的方法的描述,进而就可以解释了 可以把上面的代码分成两部分 第一部分 new Random().nextInt(max-min 阅读全文
posted @ 2021-10-20 13:40 ╰(‵□′)╯ 阅读(128) 评论(0) 推荐(0) 编辑