摘要: CHAPTER 6 EXCEPTIONS Any Java type can be declared as the return type, including exception. The key point is to remember that exceptions alter the pro 阅读全文
posted @ 2019-10-30 22:00 小白闯天涯 阅读(281) 评论(0) 推荐(0) 编辑
摘要: CHAPTER 3 CORE JAVA APIs API: Application Programming Interface, can be a group of classes or interface definitions that gives you access to a service 阅读全文
posted @ 2019-10-30 21:59 小白闯天涯 阅读(292) 评论(0) 推荐(0) 编辑
摘要: CHAPTER 4 Methods and Encapsulation 1. Designing Methods public final void nap(int minutes) throws InterruptedException { //body} access modifier: pub 阅读全文
posted @ 2019-10-30 21:59 小白闯天涯 阅读(764) 评论(0) 推荐(0) 编辑
摘要: Chapter 5 Class Design 1. Introduing Class Inheritance Inheritance is the process by which the new child subclass automatically includes public or pro 阅读全文
posted @ 2019-10-30 21:59 小白闯天涯 阅读(495) 评论(0) 推荐(0) 编辑
摘要: CHAPTER 1 Java Building Blocks 1. comment // : single-line comment /* * */ : multi-line comment /** * */ : javadoc comment 2. class Classes have two p 阅读全文
posted @ 2019-10-30 21:58 小白闯天涯 阅读(207) 评论(0) 推荐(0) 编辑
摘要: CHAPTER 2 Operators and Statements 1. Binary Arithmetic Operators Includes addition(+), subtraction(-), multiplication(*), division(/) and modulus(%). 阅读全文
posted @ 2019-10-30 21:58 小白闯天涯 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 用户管理 1.以某用户登入某个资料库: mysql -u username -ppassword db_name -p与密码之间没有空格 如果没有密码,-p可省略 db_name为可选项 2.创建用户: mysql -u root -ppassword mysql create user usern 阅读全文
posted @ 2019-04-04 05:15 小白闯天涯 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.修改 .bash_profile 终端输入:vim ~/.bash_profile 添加内容: # enables colorin the terminal bash shell export export CLICOLOR=1 # sets up thecolor scheme for lis 阅读全文
posted @ 2018-05-23 22:57 小白闯天涯 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 可以通过重新挂载硬盘的方法实现mac对NTFS硬盘格式的读写 1.打开终端,查看硬盘名称 2.查看硬盘节点 3.卸载硬盘 sudo umount /dev/disk2s1 4.重新挂载硬盘 创建个文件夹用于硬盘挂载 mkdir ~/NTFS 2018-04-19更新 更新原因:由于原方法无fstab 阅读全文
posted @ 2018-04-05 22:53 小白闯天涯 阅读(734) 评论(0) 推荐(0) 编辑
摘要: macOS自带Apache,简单配置httpd.conf文件后即可支持Python CGI编程: 1. 用电脑终端打开httpd.conf 2.搜索并激活CGI模块包(约在164行,去掉前面的#号) 3.放开权限,并修改CGI程序默认位置 DocumentRoot用于修改默认程序位置 增加ExecC 阅读全文
posted @ 2018-04-01 09:07 小白闯天涯 阅读(368) 评论(0) 推荐(0) 编辑