上一页 1 2 3 4 5 6 7 8 ··· 40 下一页
摘要: FileInputStream类 package com.tedu.day1201; import java.io.File; import java.io.FileInputStream; public class FileInputDemo { public static void main(S 阅读全文
posted @ 2022-11-05 17:37 竹石2020 阅读(21) 评论(0) 推荐(0)
摘要: package com.tedu.day1201; import java.io.File; import java.io.FileOutputStream; public class Study_Fos { public static void main(String[] args) { try 阅读全文
posted @ 2022-11-05 17:04 竹石2020 阅读(14) 评论(0) 推荐(0)
摘要: 三种方式 public File(String pathname) -- 通过指定的路径名字符串创建一个File对象。 -- 若pathname指向的是文件,创建的File对象就表示文件; -- 若pathname指向的是目录,创建的File对象就表示目录。 public File(String p 阅读全文
posted @ 2022-11-03 23:25 竹石2020 阅读(24) 评论(0) 推荐(0)
摘要: package com.taobao.study; public class ChaiDemo { public static void main(String[] args) { Integer a = 100; // 自动装箱 int b = a +1; // 自动拆箱 System.out.p 阅读全文
posted @ 2022-11-03 22:20 竹石2020 阅读(16) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; import java.util.Scanner; /* 验证身份证的号码 */ public class PersonDemo { public static void main(String[] args) { Scanner sc =new Sca 阅读全文
posted @ 2022-11-03 20:20 竹石2020 阅读(14) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; public class TestString { public static void main(String[] args) { test(); test2(); } public static void test(){ String st = "h 阅读全文
posted @ 2022-11-03 19:22 竹石2020 阅读(70) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; import java.util.Arrays; public class StringDemo { public static void main(String[] args) { String name = new String("caihengai 阅读全文
posted @ 2022-11-03 12:59 竹石2020 阅读(20) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; /* 字符串不可变。一经初始化就不会改变 */ public class Study_String { public static void main(String[] args) { String a = "123"; System.out.print 阅读全文
posted @ 2022-11-02 23:26 竹石2020 阅读(19) 评论(0) 推荐(0)
摘要: package com.te.jdkapi; import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput; import java.util.Objects; /* 学习equals的方法 */ public class Study_Equels 阅读全文
posted @ 2022-11-02 22:57 竹石2020 阅读(82) 评论(0) 推荐(0)
摘要: package com.te.exp; /** * finally 的使用 */ public class StudyExcep { public static void main(String[] args) { try { int[] arr = new int[3]; arr[3] = 100 阅读全文
posted @ 2022-11-02 20:49 竹石2020 阅读(24) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 40 下一页