摘要: .createNewFile() 创建文件 //创建文件public class t { public static void main(String[] args) { File f = new File("D:/20161229/3.txt"); try { f.createNewFile(); ... 阅读全文
posted @ 2016-12-29 01:53 小摔哥#1 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package hibernate; public class t { public static void main(String[] args) { System.out.println(jiecheng(10)); System.out.println(sum(10)); } //算阶乘的和 public static int sum(int i){ if(i... 阅读全文
posted @ 2016-12-29 01:22 小摔哥#1 阅读(6699) 评论(0) 推荐(0) 编辑
摘要: package hibernate; import java.util.Scanner; public class t { public static int shuzi() { Scanner s = new Scanner(System.in); System.out.println("请输入一个四位数:"); int i = s... 阅读全文
posted @ 2016-12-29 01:02 小摔哥#1 阅读(14660) 评论(0) 推荐(0) 编辑
摘要: create table stu( id int, sname VARCHAR(20), sex VARCHAR(1), birthday DATETIME) insert into stu values (0,'zhansgan','n','1994-12-14'); 阅读全文
posted @ 2016-12-29 00:38 小摔哥#1 阅读(481) 评论(0) 推荐(0) 编辑