摘要: 实现代码 阅读全文
posted @ 2019-08-02 22:02 AxeBurner 阅读(225) 评论(0) 推荐(0) 编辑
摘要: //需求 : 生成 5个学生并使它们存放在文件中,用到序列化和反序列化 package Zuoye01; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import jav... 阅读全文
posted @ 2019-08-02 15:30 AxeBurner 阅读(235) 评论(0) 推荐(0) 编辑
摘要: package Zuoye01; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException;... 阅读全文
posted @ 2019-08-02 14:38 AxeBurner 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 这种题目的解决方法有多种,本种方法仅供参考 阅读全文
posted @ 2019-08-01 11:17 AxeBurner 阅读(564) 评论(0) 推荐(0) 编辑
摘要: package zuoye; import java.text.SimpleDateFormat; import java.util.Date; public class Demo02 { //日期 并格式化 Date对象 SDF快捷键 Simpl..对象 //yyyy-MM-dd HH:mm:ss -可以变为中文 年 月... 阅读全文
posted @ 2019-08-01 11:15 AxeBurner 阅读(125) 评论(0) 推荐(0) 编辑
摘要: package zuoye; import java.util.ArrayList; import java.util.List; public class Demo03 { public static void main(String[] args) { //随机生成a到b的数字(包含a,不包含b): int num = (Math.random... 阅读全文
posted @ 2019-07-31 20:34 AxeBurner 阅读(525) 评论(0) 推荐(0) 编辑
摘要: package zuoye; public class Demo01 { // // //12345678 // String a = "12345678"; 12,345,678 // StringBuffer ab = new StringBuffer(a); // System.out.println(); // // //... 阅读全文
posted @ 2019-07-31 20:10 AxeBurner 阅读(811) 评论(0) 推荐(0) 编辑
摘要: package com.cheng; import java.util.Random; import java.util.Scanner; public class Demo04 { static Scanner sc = new Scanner(System.in); // 生成好的验证码方法 public static void yanZhengma() { ... 阅读全文
posted @ 2019-07-30 22:05 AxeBurner 阅读(1483) 评论(0) 推荐(0) 编辑
摘要: package zuoye; public class PhoneNum { public static void phone() { String first = "1"; String a = ""; for (int i = 0; i < 3; i++) { int random = (int) (M... 阅读全文
posted @ 2019-07-30 21:15 AxeBurner 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 枚举类 阅读全文
posted @ 2019-07-30 18:43 AxeBurner 阅读(255) 评论(0) 推荐(0) 编辑