摘要: import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class demo1 { /** * @param args ... 阅读全文
posted @ 2016-12-13 08:51 张恒v5 阅读(416) 评论(0) 推荐(0) 编辑
摘要: class LoadDown implements Runnable{ static double num=0; static double n1 =0; static double n2 =0; static double n3 =0; static double n4 =0; public void run(){ ... 阅读全文
posted @ 2016-12-05 17:23 张恒v5 阅读(237) 评论(0) 推荐(0) 编辑
摘要: package com.beiwo.homework; import java.io.File; /* 4.将一个文件夹中所有的文件查找出来,按照一定的格式 分析 : 1.一个文件夹中存在文件,子文件夹 2.除了当前文件夹,还有子文件夹中的文件也需要找出来。 3.子文件查找文件和当前文件查找文件是一样的操作,就可以定义一个方法来做文件... 阅读全文
posted @ 2016-12-05 17:21 张恒v5 阅读(217) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class demo7 { /** * @param a... 阅读全文
posted @ 2016-12-05 17:21 张恒v5 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.Scanner; clas... 阅读全文
posted @ 2016-12-02 08:44 张恒v5 阅读(199) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; class Car { String[] name =new String[5]; int num1=0; int num2=0; int num3=0; int num4=0; int num5=0; int money=0; int n1=0; int n2=0; int n3=0; int n4=0; int n5=0; ... 阅读全文
posted @ 2016-11-25 10:52 张恒v5 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; class demo2 { public static void main(String[] args) { System.out.println("---------日历------------"); Scanner input =new Scanner(System.in); Syste... 阅读全文
posted @ 2016-11-25 10:51 张恒v5 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays; public class demo3 { public static void main(String[] args) { int[] arr ={11,2,4,2,5,5,10,11}; int[] newarr=clearRepeat(arr); System.out.println("清除的重... 阅读全文
posted @ 2016-11-25 09:46 张恒v5 阅读(317) 评论(0) 推荐(0) 编辑
摘要: class Person{ String name; String sex; int age; String birthday;} class demo1{ public static void main(String[] args) { Person zh = new Person(); zh.n 阅读全文
posted @ 2016-11-14 18:45 张恒v5 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 如何给变量取个简短且无歧义的名字_知识库_博客园 阅读全文
posted @ 2016-11-05 08:48 张恒v5 阅读(66) 评论(0) 推荐(0) 编辑