随笔分类 -  JavaSE

摘要:一、int 类型转换 成String类型 定义一个int类型 int i =100; //方法一:使用 i+"";String s1 = i+""; //方法二:String.valueOF(i);String s2 = String.valueOF(i); //方法三:转化成包装类Integer, 阅读全文 »
posted @ 2023-02-08 13:00 dev-pan 阅读(2407) 评论(0) 推荐(0) 编辑
摘要:1.类注释模板 File -> Settings -> Editor -> File and Code Templates -> Files 选择Class , Interface ,Enum 等等,我们都可以看到,在右侧区域中,在public class 上面,都有一行 #parse(“File 阅读全文 »
posted @ 2022-12-28 14:30 dev-pan 阅读(1099) 评论(0) 推荐(0) 编辑
摘要:package com; import java.io.File; public class DeletDirectoryAndFiles { public static void main(String[] args) { Boolean flag; flag = new DeletDirecto 阅读全文 »
posted @ 2022-10-12 14:03 dev-pan 阅读(223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示