摘要: 1、 查询Student表中的所有记录的Sname、Ssex和Class列。 2、 查询教师所有的单位即不重复的Depart列。 3、 查询Student表的所有记录。 4、 查询Score表中成绩在60到80之间的所有记录。 5、 查询Score表中成绩为85,86或88的记录。 6、 查询Stu 阅读全文
posted @ 2016-06-16 19:40 薛岩 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-12 10:33 薛岩 阅读(734) 评论(0) 推荐(0) 编辑
摘要: package xiancheng; //以继承方式支持多线程 public class Test2 extends Thread{ //重写fun方法 //fun方法是用来被star()自动调用 @Override public void run() { //调用需要并发执行的语句 test(); 阅读全文
posted @ 2016-06-03 21:46 薛岩 阅读(618) 评论(0) 推荐(0) 编辑
摘要: package shurushuchu; import java.io.*; public class test5 { public static void main(String[] args) { try { File file = new File("d:/IoDemo.java"); if(!file.exists()) ... 阅读全文
posted @ 2016-06-01 11:05 薛岩 阅读(225) 评论(0) 推荐(0) 编辑
摘要: package shurushuchu; import java.io.*; public class test4 { public static void main(String[] args) { //创建文件输出 try { File file = new File("d:/test4.txt"); if(!file.... 阅读全文
posted @ 2016-06-01 11:04 薛岩 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: package exception; public class lianxiti1 { public static void main(String[] args) { for(int i=0;i<4;i++){ int k; switch(i){ case 0: ... 阅读全文
posted @ 2016-05-28 13:12 薛岩 阅读(167) 评论(0) 推荐(0) 编辑
摘要: package Hanqi.ec; import java.util.Scanner; public class zuoyekehushuru { public static void main(String[] args) { System.out.println("请输入一个数字:"); try{ Scanner b=new... 阅读全文
posted @ 2016-05-27 21:56 薛岩 阅读(369) 评论(0) 推荐(0) 编辑
摘要: package mianxiangduixiang; import java.nio.charset.MalformedInputException; //银行 public class getyinhang { String zhanghu ; double cunkuanyue; double 阅读全文
posted @ 2016-05-18 16:07 薛岩 阅读(246) 评论(0) 推荐(0) 编辑
摘要: package mianxiangduixiang; //梯形 public class ladder { double shangdi ; double xiadi ; double gao ; double mianji ; double zhouchang ; ladder(double sha... 阅读全文
posted @ 2016-05-18 13:36 薛岩 阅读(2065) 评论(0) 推荐(0) 编辑
摘要: 输出猫的名字和颜色 输出猫的名字和年龄 阅读全文
posted @ 2016-05-18 13:25 薛岩 阅读(176) 评论(0) 推荐(0) 编辑