代码改变世界

java作业-0511

2018-05-14 11:29 by yelena, 191 阅读, 0 推荐, 收藏, 编辑
摘要:import java.util.Random; class zuoye { public static void main(String[] args) { //随机点名 /*String[] arr = {"董斌","张锐","王荣臣","韩凯","张禄","刘继勋","张维","牛攀","魏中豪"}; for(int i ... 阅读全文

java中数组的使用-0511

2018-05-14 11:28 by yelena, 144 阅读, 0 推荐, 收藏, 编辑
摘要:class Demo02 { public static void main(String[] args) { /*int[] arr = new int[3]; System.out.println(arr); System.out.println(arr.length); System.out.println... 阅读全文

java中switch语句的使用-0511

2018-05-14 11:26 by yelena, 746 阅读, 0 推荐, 收藏, 编辑
摘要:import java.util.Scanner; class Demo01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入"); int week = sc.nextI... 阅读全文

循环的使用及作业-0509

2018-05-14 10:54 by yelena, 234 阅读, 1 推荐, 收藏, 编辑
摘要:class Demo05 { public static void main(String[] args) { /*int a = 0; while(a0&&aasjs){ System.out.println("大了"); }else{ System.out.... 阅读全文

java中引用数据类型Scanner类和Random类的使用-0509

2018-05-14 10:52 by yelena, 154 阅读, 0 推荐, 收藏, 编辑
摘要:import java.util.Scanner; class Demo02 { public static void main(String[] args) { //导包 //创建该类对象 Scanner sc = new Scanner(System.in); //用该对象调用类里面的方法 /... 阅读全文

java中运算符的理解-0509

2018-05-14 10:48 by yelena, 153 阅读, 0 推荐, 收藏, 编辑
摘要:class Demo01 { public static void main(String[] args) { //int j=4; //短路与的时候,当左边为false的时候,右边就不会再判断 //System.out.println(5>4&&j++>3); //System.out.println(j); ... 阅读全文

MySQL-ER图

2018-05-08 15:51 by yelena, 767 阅读, 0 推荐, 收藏, 编辑
摘要:CREATE TABLE keshi( kname VARCHAR(5) PRIMARY KEY, address VARCHAR(5), tele INT, dname VARCHAR(10) ) DESC keshi; CREATE TABLE bingfang( bid INT... 阅读全文

MySQL-习题

2018-05-08 10:48 by yelena, 218 阅读, 0 推荐, 收藏, 编辑
摘要:/*查询每门课的平均成绩*/ SELECT cno,AVG(degree) FROM score GROUP BY cno; /*查询Score表中至少有5名学生选修的并以3开头的课程的平均分数*/ SELECT AVG(degree) FROM score WHERE cno=( SELECT cno FROM score GROUP BY cno HAVING ... 阅读全文

MySQL-作业

2018-05-04 16:32 by yelena, 251 阅读, 0 推荐, 收藏, 编辑
摘要:CREATE TABLE yg( empno INT, ename VARCHAR(20), job VARCHAR(6), mgr INT, hiredate DATE, sal DOUBLE, comm DOUBLE, ... 阅读全文

mysql-数据查询

2018-05-04 16:31 by yelena, 163 阅读, 0 推荐, 收藏, 编辑
摘要:CREATE TABLE class0328( id INT, cname VARCHAR(20), sex VARCHAR(2), age INT, birthday DATE, score DOUBLE, html DOUBLE, j... 阅读全文