摘要:
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
阅读(23)
评论(0)
推荐(0)
摘要:
三种方式 public File(String pathname) -- 通过指定的路径名字符串创建一个File对象。 -- 若pathname指向的是文件,创建的File对象就表示文件; -- 若pathname指向的是目录,创建的File对象就表示目录。 public File(String p 阅读全文
posted @ 2022-11-03 23:25
竹石2020
阅读(35)
评论(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
阅读(26)
评论(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
阅读(24)
评论(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
阅读(83)
评论(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
阅读(31)
评论(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
阅读(26)
评论(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
阅读(95)
评论(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
阅读(27)
评论(0)
推荐(0)
摘要:
package com.te.exp; /** * 此类用于学习异常 * 异常处理方法 * 1.虚拟机默认处理 * 将异常的名称(类型)异常出现的原因 以及异常出现的位置输出到控制台 * 2.程序员手动处理 * 有两种方案 * 1.try....catch...(捕获异常) * try...catc 阅读全文
posted @ 2022-11-02 20:18
竹石2020
阅读(48)
评论(0)
推荐(0)
浙公网安备 33010602011771号