zoukankan      html  css  js  c++  java
  • 编程体系结构(01):Java编程基础

    一、数据类型

    1、基础类型

    整型:byte 、short 、int 、long
    浮点型:float、double
    字节型:char
    

    2、包装类型

    Byte,Short,Integer,Long
    Float,Double
    Character
    

    3、String字符

    常用方法
    StringBuilder、StringBuffer
    

    4、类型转换

    自动转换:范围小类型->范围大类型
    强制转换:范围大类型->范围小类型
    

    二、流程控制

    1、分支语句

    if 语句
    else...if 语句
    switch 语句
    for 循环
    while 循环
    

    2、分支判断

    true 和 false
    

    3、流程中断

    return 关键字
    continue 关键字
    break 关键字
    

    4、基础算法

    冒泡排序
    排列组合
    递归
    

    三、数组

    初始化
    数据与集合容器区别
    底层数据结构
    

    四、操作符

    1、算术运算

    加减乘除 、优先级
    取余、四舍五入、100%补偿
    

    2、关系运算

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

    3、赋值运算

    等号赋值
    自动加加、自动减减
    

    4、移位运算

    左移位、右移位
    

    5、逻辑运算

    与、或、非
    运算流程到条件整体成立
    

    整体结构

  • 相关阅读:
    [leetcode]Valid Number
    [leetcode]Edit Distance
    [leetcode]Decode Ways
    [leetcode]Maximum Depth of Binary Tree
    [topcoder]BadNeighbors
    [topcoder]ZigZag
    [leetcode]Subsets II
    [leetcode]Merge Sorted Array
    [leetcode]Binary Tree Maximum Path Sum
    hdu 2964 Prime Bases(简单数学题)
  • 原文地址:https://www.cnblogs.com/cicada-smile/p/13623106.html
Copyright © 2011-2022 走看看