31

编程体系结构(01):Java编程基础

 3 years ago
source link: http://mp.weixin.qq.com/s?__biz=MzU4Njg0MzYwNw%3D%3D&%3Bmid=2247484803&%3Bidx=2&%3Bsn=9644cb2ef3b45f75c2be770b7286f927
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一、数据类型

rIZR3qn.png!mobile

1、基础类型

整型:

byte 、short 、int 、long

浮点型:

float、double

字节型:

char

2、包装类型

Byte,Short,Integer,Long

Float,Double

Character

3、String字符

常用方法

StringBuilder、StringBuffer

4、类型转换

自动转换:

范围小类型->范围大类型

强制转换:

范围大类型->范围小类型

二、流程控制

RzYZbeU.png!mobile

1、分支语句

if 语句

else...if 语句

switch 语句

for 循环

while 循环

2、分支判断

true 和 false

3、流程中断

return 关键字

continue 关键字

break 关键字

4、基础算法

冒泡排序

排列组合

递归

三、数组

ZNf6RnY.png!mobile

初始化

数据与集合容器区别

底层数据结构

四、操作符

iAFvuqJ.png!mobile

1、算术运算

加减乘除 、优先级

取余、四舍五入、100%补偿(金融支付业务)

2、关系运算

大于、小于、大于等于、小于等于、不等于

3、赋值运算

等号赋值

自动加加、自动减减

4、移位运算

左移位、右移位

5、逻辑运算

与、或、非

运算流程到条件整体成立

整体结构:

Java编程基础主要包括如下几块核心内容:基础数据类型,String字符串,流程分支控制,数组容器和相关的基础操作符运算:

nEBb6r6.png!mobile


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK