是否有类型自动转换 相同类型的数据进行运算,结果也是同类型数据
++:自增 给自变量增加一个1 --:自减 给自变量减一个1 相同点:只能用于变量运算
K=a++;//先把a的值取出来赋值给k,然后再给a自增1 k=++a;//先把a赋值1,
I*=0.1 i=(int)(i0.1); i是整型 0.1默认是double 10.1 double 赋值给i系统Automatically Choose Connection Type自动进行强制类型转换
物理层 数据连接层 网络层 运输层 会话层 表示层 应用层
Router 路由器 Switch交换机 Hub集线器 Connecyions连接介质 End Devices终端设备 Automatically Choose connection Type 自动地选择连接类型 Console 控制台连接 一般用来设置网络设备 Copper Straight-Through 铜 直通线
判断x的值是否在(-20,-9)之间
数学写法:-20<X<-9
Java程序中:-20<X<-9
-20<-15 true<-9 x>-20&X<-9 数学上的交集
The operator<is undefined for the argument type(s) boolean, int 这个操作字符<没有被定义 为 布尔型 整型 参数
a b a^b
true true false
true false true
false true true
false false false
^的特点:左右相同,结果为假;左右不同,结果为真
a b a|b a||b
true false true true
true true true true
false true true true
false false false false
|与||相同点:左右有一个为真,那么结果就为真;左右全为假时,结果才为假x>10|X<-5
a b a%b a%%b
true true true true
true false false false
false true false false
false false false false
&与&&相同点:左右同时为真,结果为真;有一个为假,那么结果为假
0000 0011 0000 0011
0000 0110 & 0000 0110 |
0000 0010 2 0000 0111 7
0000 0011
0000 0110 ^
0000 0101 5
Ctrl+1 1度角=3.14/180弧度
Java课堂笔记
原创文章标签 java课堂笔记 文章分类 JavaScript 前端开发
上一篇:AndQue.java
下一篇:Java 第一次作业
-
JavaScript课堂笔记
程序一词来自生活,通常指完成某些事务的一种既定方式和过程在日常生活中,可以将程序看成对一系列动作的执行过程的描述
javascript 前端 开发语言 js vue -
Python 课堂笔记
VScode里搭建Python环境
python Python -
反射课堂笔记
反射笔记加载类的过程就,加载类支持反射的两种语言,c#,java
java 反射 构造方法 调用方法 对象类型 -
QT 课堂笔记
打开Vim 编辑-preferences-FakeVim 目录名里不要有中文
preferences -
CCNA课堂精简笔记
CCNA课堂精简笔记
职场 休闲 CCNA课堂精简笔记 -
课堂笔记(CentOS 7)
硬盘分区硬盘分区实质上是对硬盘的一种格式化,然后才能使用硬盘保存各种信息。创
CentOS linux 分区 硬盘 扩容