摘要: public class duotaui_1 {/* * 多态运行规则 * 成员变量(int num =10;) * 编译看左边(父类),运行看右边(父类) * 成员方法print() * 编译看左边(父类),运行看右边(子类) * 静态方法: * 编译看左边(父类),运行看右边(父类) * 总结: 阅读全文
posted @ 2020-05-19 14:58 雨曼晴川 阅读(104) 评论(0) 推荐(0)
摘要: package com.test; public class test_3 { public static void main(String[] args) { System.out.println(); dog a =new dog(); a.setName("test"); a.eat(); a 阅读全文
posted @ 2020-05-15 09:30 雨曼晴川 阅读(97) 评论(0) 推荐(0)
摘要: 一、环境 系统:centos 7 sendmail:sendmail.x86_64 0:8.14.7-5.el7 mailx版本:mailx-12.5-19.el7.x86_64 二、软件安装: 1、安装 sendmail #: yum -y install sendmail 2、安装mailx # 阅读全文
posted @ 2020-05-15 08:18 雨曼晴川 阅读(389) 评论(0) 推荐(0)
摘要: #备份数据库 db2 backup db TESTDB online to /opt/backup/db2_backup/$(date "+%Y%m%d")/TESTDB/ include logs#查看备份日志路径 db2 list history backup all for TESTDB #将 阅读全文
posted @ 2020-05-12 13:36 雨曼晴川 阅读(177) 评论(0) 推荐(0)
摘要: package com.test;//封装 public class test_2 { public static void main(String[] args) { animal a = new animal(); a.setAge(18); a.setName("zhangsan"); a.t 阅读全文
posted @ 2020-05-11 13:52 雨曼晴川 阅读(80) 评论(0) 推荐(0)
摘要: /* //创建对象的格式:类名对象名= new_ 类名();Student s = new Student() ; class Demo1_ Student {public static void main (String[] args)//创建对象的格式:类名对象名= new_ 类名();//对象 阅读全文
posted @ 2020-05-11 08:58 雨曼晴川 阅读(104) 评论(0) 推荐(0)
摘要: 一. 二维数组遍历 package test_1; public class test_7 { public static void main(String[] args) { int[][] arr = {{1,2,3},{5,6},{12,13,14}}; for(int i=0; i< arr 阅读全文
posted @ 2020-05-10 19:40 雨曼晴川 阅读(88) 评论(0) 推荐(0)
摘要: package test_1;//取反public class test_4 { public static void main(String[] args) { int[] arr = {11,22,33,44,55}; reverseArray(arr); //调用取反方法 print(arr) 阅读全文
posted @ 2020-05-10 18:25 雨曼晴川 阅读(1110) 评论(0) 推荐(0)
摘要: int[] arr= new int[5]; 数据类型 [] 数组名 = new 数据类型【数组长度】;左边: int 数据类型[ ] :代表的数组,几个中括号代表几维数组arr: 合法的标识符右边:new: 创建一个新的实体或对象int:数据类型[ ]:代表数组5:代表数组的长度 package 阅读全文
posted @ 2020-05-10 17:34 雨曼晴川 阅读(174) 评论(0) 推荐(0)
摘要: 1. for循环 #!/bin/bash a=0 for ((i=0 ; i <= 100; i++ )) do a=$((a+i)) done echo $a 2. awk语句 [root@localhost ~]# awk 'BEGIN { for(i=1; i<=100; i++) sum+= 阅读全文
posted @ 2020-05-09 09:07 雨曼晴川 阅读(196) 评论(0) 推荐(0)