摘要: 1 import java.util.*; 2 class 数组索引{ 3 public static void main(String args[]){ 4 //数组中的使用工具:Arrays 5 int[] arr = {1,2,3,4}; 6 //查找数组中是否还有某一个数 7 int n... 阅读全文
posted @ 2016-11-14 13:36 阿水写程序 阅读(6047) 评论(0) 推荐(0) 编辑
摘要: 1 /* 5. 有如下歌曲数组 2 String[] musics = new String[]{"Island","Ocean","Pretty","Sun"}; 3 //这是按照字母顺序排好序的 字符串数组 4 5 现在要往里面插入新的英文歌曲, 6 按照首字母排序插入到指定的位置 7 8 提示: musics[i].compareToIgnoreCase(music)... 阅读全文
posted @ 2016-11-13 20:24 阿水写程序 阅读(2528) 评论(1) 推荐(0) 编辑
摘要: -- 创建表CREATE TABLE teacher( id INT, NAME VARCHAR(20))-- 查看所有表SHOW TABLES; DESC student; DROP TABLE student; CREATE TABLE student( id INT, NAME VARCHAR 阅读全文
posted @ 2016-11-13 20:12 阿水写程序 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 打开MySQL: 1.进入终端输入:cd /usr/local/mysql/bin/ 2.回车后 登录管理员权限 sudo su 3.回车后输入以下命令来禁止mysql验证功能 ./mysqld_safe --skip-grant-tables & 4.回车后mysql会自动重启(偏好设置中mysq 阅读全文
posted @ 2016-11-07 13:32 阿水写程序 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 8 9 添加节点 10 删除节点 11 12 13 14 29 阅读全文
posted @ 2016-10-31 17:36 阿水写程序 阅读(354) 评论(0) 推荐(0) 编辑
摘要: clip:rect(20px 100px 50px 20px); clip属性中的rect,clip:rect(y1 x2 y2 x1)参数说明如下: y1=定位的y坐标(垂直方向)的起点 x1=定位的x坐标(水平方向)的起点 y2=定位的y坐标(垂直方向)的终点 x2=定位的x坐标(水平方向)的终 阅读全文
posted @ 2016-10-28 19:43 阿水写程序 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 div边框变化 6 7 37 38 39 40 41 42 43 44 45 46 47 48 *{ padding:0; margin: 0; } img{ float: left; width: 124px; height: 220px... 阅读全文
posted @ 2016-10-28 19:34 阿水写程序 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Js获取当前日期时间及其它操作 var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11 阅读全文
posted @ 2016-10-28 19:28 阿水写程序 阅读(140063) 评论(1) 推荐(0) 编辑