08 2021 档案

摘要:System.console().readPassword()在idea中运行出现空指针异常 Console cons = System.console(); char[] chars = cons.readPassword(); String s=new String(chars); System 阅读全文
posted @ 2021-08-29 15:54 0牛牛牛 阅读(362) 评论(0) 推荐(0) 编辑
摘要:Scanner scanner=new Scanner(System.in); File file=new File("C:\\Users\\Administrator\\Desktop","t1.txt"); String n=null; char[] b=new char[3]; try { F 阅读全文
posted @ 2021-08-24 09:05 0牛牛牛 阅读(190) 评论(0) 推荐(0) 编辑
摘要:import java.io.*; public class E3 { public static void main(String[] args) { File file = new File("C:\\Users\\Administrator\\Desktop", "e3.txt"); byte 阅读全文
posted @ 2021-08-20 21:25 0牛牛牛 阅读(102) 评论(0) 推荐(0) 编辑
摘要:File file=new File("C:\\Users\\Administrator\\Desktop","e1.txt"); System.out.println(file.exists()); 这段代码输出的是false File 类是对文件系统的映射 并不是硬盘上真实的文件,所以 new 阅读全文
posted @ 2021-08-17 10:06 0牛牛牛 阅读(839) 评论(0) 推荐(0) 编辑

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