第一天学习JAVA,也不知道能否坚持下去,做个笔记吧,记录自己学习过程,方便后期复习,也顺便监督一下自己

18周 JAVA从入门到入土

  • 一、软件简介
    • 1.1 什么是软件
    • 1.2 为什么学软件
    • 1.3 JAVA需要什么
    • 1.4JAVAEE环境配置
  • 二、JAVA入门
    • 2.1 JAVA工程
    • 2.2 HelloWorld
  • 三、变量定义/数据类型/基础运算
    • 3.1 数据类型
    • 3.2 变量定义
    • 3.3 基础运算
  • 四、判断/循环/数组
    • 4.1 判断
    • 4.2 循环
    • 4.3 数组
    • 4.4 遍历
      • 1° 遍历
      • 2° 遍历+挑选
      • 3° 遍历+计数
      • 4° 遍历+累加/累乘
      • 5° 遍历+挑最小/挑最大

一、软件简介

1.1 什么是软件

1· 向软件发送请求
2· 软件内部做运算
3· 软件输出其结果

1.2 为什么学软件

这个问题不做回答

1.3 JAVA需要什么

JAVA运算需要环境

1.4JAVAEE环境配置

1· 安装JDK
2· 配置环境变量
3· 运行Eclipse
关于环境变量配置:如果安装JDK时采用默认路径,则不需要配置环境变量,如果采用自定义安装路径,则需要配置JAVA_HOME和path路径。(以下划线处包含部分个人猜测) 至于环境变量配置,JAVA_HOME是一个常量,其值为JDK的安装路径,即JAVA_HOME是JDK安装路径的一个常量名,而path路径是cmd能直接调用一些文件的默认路径,在path路径里加入%JAVA_HOME%\bin,可以使bin文件夹下的java.exe和javac.exe可以直接在cmd中使用,不需要再先进入其文件夹,更加方便。

二、JAVA入门

2.1 JAVA工程

#mermaid-svg-6BLo42Gy3MqaEUPJ .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .label text{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .node rect,#mermaid-svg-6BLo42Gy3MqaEUPJ .node circle,#mermaid-svg-6BLo42Gy3MqaEUPJ .node ellipse,#mermaid-svg-6BLo42Gy3MqaEUPJ .node polygon,#mermaid-svg-6BLo42Gy3MqaEUPJ .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-6BLo42Gy3MqaEUPJ .node .label{text-align:center;fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .node.clickable{cursor:pointer}#mermaid-svg-6BLo42Gy3MqaEUPJ .arrowheadPath{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-6BLo42Gy3MqaEUPJ .flowchart-link{stroke:#333;fill:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-6BLo42Gy3MqaEUPJ .edgeLabel rect{opacity:0.9}#mermaid-svg-6BLo42Gy3MqaEUPJ .edgeLabel span{color:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-6BLo42Gy3MqaEUPJ .cluster text{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-6BLo42Gy3MqaEUPJ .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-6BLo42Gy3MqaEUPJ text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .actor-line{stroke:grey}#mermaid-svg-6BLo42Gy3MqaEUPJ .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .sequenceNumber{fill:#fff}#mermaid-svg-6BLo42Gy3MqaEUPJ #sequencenumber{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ #crosshead path{fill:#333;stroke:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .messageText{fill:#333;stroke:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-6BLo42Gy3MqaEUPJ .labelText,#mermaid-svg-6BLo42Gy3MqaEUPJ .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .loopText,#mermaid-svg-6BLo42Gy3MqaEUPJ .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-6BLo42Gy3MqaEUPJ .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-6BLo42Gy3MqaEUPJ .noteText,#mermaid-svg-6BLo42Gy3MqaEUPJ .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-6BLo42Gy3MqaEUPJ .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-6BLo42Gy3MqaEUPJ .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-6BLo42Gy3MqaEUPJ .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .section{stroke:none;opacity:0.2}#mermaid-svg-6BLo42Gy3MqaEUPJ .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-6BLo42Gy3MqaEUPJ .section2{fill:#fff400}#mermaid-svg-6BLo42Gy3MqaEUPJ .section1,#mermaid-svg-6BLo42Gy3MqaEUPJ .section3{fill:#fff;opacity:0.2}#mermaid-svg-6BLo42Gy3MqaEUPJ .sectionTitle0{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .sectionTitle1{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .sectionTitle2{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .sectionTitle3{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-6BLo42Gy3MqaEUPJ .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .grid path{stroke-width:0}#mermaid-svg-6BLo42Gy3MqaEUPJ .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-6BLo42Gy3MqaEUPJ .task{stroke-width:2}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText:not([font-size]){font-size:11px}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-6BLo42Gy3MqaEUPJ .task.clickable{cursor:pointer}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText0,#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText1,#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText2,#mermaid-svg-6BLo42Gy3MqaEUPJ .taskText3{fill:#fff}#mermaid-svg-6BLo42Gy3MqaEUPJ .task0,#mermaid-svg-6BLo42Gy3MqaEUPJ .task1,#mermaid-svg-6BLo42Gy3MqaEUPJ .task2,#mermaid-svg-6BLo42Gy3MqaEUPJ .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutside0,#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutside2{fill:#000}#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutside1,#mermaid-svg-6BLo42Gy3MqaEUPJ .taskTextOutside3{fill:#000}#mermaid-svg-6BLo42Gy3MqaEUPJ .active0,#mermaid-svg-6BLo42Gy3MqaEUPJ .active1,#mermaid-svg-6BLo42Gy3MqaEUPJ .active2,#mermaid-svg-6BLo42Gy3MqaEUPJ .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-6BLo42Gy3MqaEUPJ .activeText0,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeText1,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeText2,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeText3{fill:#000 !important}#mermaid-svg-6BLo42Gy3MqaEUPJ .done0,#mermaid-svg-6BLo42Gy3MqaEUPJ .done1,#mermaid-svg-6BLo42Gy3MqaEUPJ .done2,#mermaid-svg-6BLo42Gy3MqaEUPJ .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-6BLo42Gy3MqaEUPJ .doneText0,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneText1,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneText2,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneText3{fill:#000 !important}#mermaid-svg-6BLo42Gy3MqaEUPJ .crit0,#mermaid-svg-6BLo42Gy3MqaEUPJ .crit1,#mermaid-svg-6BLo42Gy3MqaEUPJ .crit2,#mermaid-svg-6BLo42Gy3MqaEUPJ .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCrit0,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCrit1,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCrit2,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCrit0,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCrit1,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCrit2,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-6BLo42Gy3MqaEUPJ .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-6BLo42Gy3MqaEUPJ .milestoneText{font-style:italic}#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCritText0,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCritText1,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCritText2,#mermaid-svg-6BLo42Gy3MqaEUPJ .doneCritText3{fill:#000 !important}#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCritText0,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCritText1,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCritText2,#mermaid-svg-6BLo42Gy3MqaEUPJ .activeCritText3{fill:#000 !important}#mermaid-svg-6BLo42Gy3MqaEUPJ .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-6BLo42Gy3MqaEUPJ g.classGroup text .title{font-weight:bolder}#mermaid-svg-6BLo42Gy3MqaEUPJ g.clickable{cursor:pointer}#mermaid-svg-6BLo42Gy3MqaEUPJ g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-6BLo42Gy3MqaEUPJ g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-6BLo42Gy3MqaEUPJ .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-6BLo42Gy3MqaEUPJ .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .dashed-line{stroke-dasharray:3}#mermaid-svg-6BLo42Gy3MqaEUPJ #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ .commit-id,#mermaid-svg-6BLo42Gy3MqaEUPJ .commit-msg,#mermaid-svg-6BLo42Gy3MqaEUPJ .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-6BLo42Gy3MqaEUPJ g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-6BLo42Gy3MqaEUPJ g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-6BLo42Gy3MqaEUPJ g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-6BLo42Gy3MqaEUPJ .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-6BLo42Gy3MqaEUPJ .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-6BLo42Gy3MqaEUPJ .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-6BLo42Gy3MqaEUPJ .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-6BLo42Gy3MqaEUPJ .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-6BLo42Gy3MqaEUPJ .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-6BLo42Gy3MqaEUPJ .edgeLabel text{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6BLo42Gy3MqaEUPJ .node circle.state-start{fill:black;stroke:black}#mermaid-svg-6BLo42Gy3MqaEUPJ .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-6BLo42Gy3MqaEUPJ #statediagram-barbEnd{fill:#9370db}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-state .divider{stroke:#9370db}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-6BLo42Gy3MqaEUPJ .note-edge{stroke-dasharray:5}#mermaid-svg-6BLo42Gy3MqaEUPJ .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-6BLo42Gy3MqaEUPJ .error-icon{fill:#522}#mermaid-svg-6BLo42Gy3MqaEUPJ .error-text{fill:#522;stroke:#522}#mermaid-svg-6BLo42Gy3MqaEUPJ .edge-thickness-normal{stroke-width:2px}#mermaid-svg-6BLo42Gy3MqaEUPJ .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-6BLo42Gy3MqaEUPJ .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-6BLo42Gy3MqaEUPJ .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-6BLo42Gy3MqaEUPJ .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-6BLo42Gy3MqaEUPJ .marker{fill:#333}#mermaid-svg-6BLo42Gy3MqaEUPJ .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-6BLo42Gy3MqaEUPJ {color: rgba(0, 0, 0, 0.75);font: ;}

工作空间Workspace
工程Project
SRC
包Package
代码文件.java

2.2 HelloWorld

public class HelloWorld {public static void main(String[] args) {System.out.println("HelloWorld");}
}

主函数main:

public static void main(String[] args) {}

输出语句:

System.out.println();

代码提示快捷键:Alt+/

三、变量定义/数据类型/基础运算

3.1 数据类型

#mermaid-svg-aM33o6f1VmPFgfyz .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-aM33o6f1VmPFgfyz .label text{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .node rect,#mermaid-svg-aM33o6f1VmPFgfyz .node circle,#mermaid-svg-aM33o6f1VmPFgfyz .node ellipse,#mermaid-svg-aM33o6f1VmPFgfyz .node polygon,#mermaid-svg-aM33o6f1VmPFgfyz .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-aM33o6f1VmPFgfyz .node .label{text-align:center;fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .node.clickable{cursor:pointer}#mermaid-svg-aM33o6f1VmPFgfyz .arrowheadPath{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-aM33o6f1VmPFgfyz .flowchart-link{stroke:#333;fill:none}#mermaid-svg-aM33o6f1VmPFgfyz .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-aM33o6f1VmPFgfyz .edgeLabel rect{opacity:0.9}#mermaid-svg-aM33o6f1VmPFgfyz .edgeLabel span{color:#333}#mermaid-svg-aM33o6f1VmPFgfyz .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-aM33o6f1VmPFgfyz .cluster text{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-aM33o6f1VmPFgfyz .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-aM33o6f1VmPFgfyz text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-aM33o6f1VmPFgfyz .actor-line{stroke:grey}#mermaid-svg-aM33o6f1VmPFgfyz .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-aM33o6f1VmPFgfyz .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-aM33o6f1VmPFgfyz #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-aM33o6f1VmPFgfyz .sequenceNumber{fill:#fff}#mermaid-svg-aM33o6f1VmPFgfyz #sequencenumber{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz #crosshead path{fill:#333;stroke:#333}#mermaid-svg-aM33o6f1VmPFgfyz .messageText{fill:#333;stroke:#333}#mermaid-svg-aM33o6f1VmPFgfyz .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-aM33o6f1VmPFgfyz .labelText,#mermaid-svg-aM33o6f1VmPFgfyz .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-aM33o6f1VmPFgfyz .loopText,#mermaid-svg-aM33o6f1VmPFgfyz .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-aM33o6f1VmPFgfyz .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-aM33o6f1VmPFgfyz .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-aM33o6f1VmPFgfyz .noteText,#mermaid-svg-aM33o6f1VmPFgfyz .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-aM33o6f1VmPFgfyz .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-aM33o6f1VmPFgfyz .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-aM33o6f1VmPFgfyz .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-aM33o6f1VmPFgfyz .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .section{stroke:none;opacity:0.2}#mermaid-svg-aM33o6f1VmPFgfyz .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-aM33o6f1VmPFgfyz .section2{fill:#fff400}#mermaid-svg-aM33o6f1VmPFgfyz .section1,#mermaid-svg-aM33o6f1VmPFgfyz .section3{fill:#fff;opacity:0.2}#mermaid-svg-aM33o6f1VmPFgfyz .sectionTitle0{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .sectionTitle1{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .sectionTitle2{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .sectionTitle3{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-aM33o6f1VmPFgfyz .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .grid path{stroke-width:0}#mermaid-svg-aM33o6f1VmPFgfyz .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-aM33o6f1VmPFgfyz .task{stroke-width:2}#mermaid-svg-aM33o6f1VmPFgfyz .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .taskText:not([font-size]){font-size:11px}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-aM33o6f1VmPFgfyz .task.clickable{cursor:pointer}#mermaid-svg-aM33o6f1VmPFgfyz .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-aM33o6f1VmPFgfyz .taskText0,#mermaid-svg-aM33o6f1VmPFgfyz .taskText1,#mermaid-svg-aM33o6f1VmPFgfyz .taskText2,#mermaid-svg-aM33o6f1VmPFgfyz .taskText3{fill:#fff}#mermaid-svg-aM33o6f1VmPFgfyz .task0,#mermaid-svg-aM33o6f1VmPFgfyz .task1,#mermaid-svg-aM33o6f1VmPFgfyz .task2,#mermaid-svg-aM33o6f1VmPFgfyz .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutside0,#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutside2{fill:#000}#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutside1,#mermaid-svg-aM33o6f1VmPFgfyz .taskTextOutside3{fill:#000}#mermaid-svg-aM33o6f1VmPFgfyz .active0,#mermaid-svg-aM33o6f1VmPFgfyz .active1,#mermaid-svg-aM33o6f1VmPFgfyz .active2,#mermaid-svg-aM33o6f1VmPFgfyz .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-aM33o6f1VmPFgfyz .activeText0,#mermaid-svg-aM33o6f1VmPFgfyz .activeText1,#mermaid-svg-aM33o6f1VmPFgfyz .activeText2,#mermaid-svg-aM33o6f1VmPFgfyz .activeText3{fill:#000 !important}#mermaid-svg-aM33o6f1VmPFgfyz .done0,#mermaid-svg-aM33o6f1VmPFgfyz .done1,#mermaid-svg-aM33o6f1VmPFgfyz .done2,#mermaid-svg-aM33o6f1VmPFgfyz .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-aM33o6f1VmPFgfyz .doneText0,#mermaid-svg-aM33o6f1VmPFgfyz .doneText1,#mermaid-svg-aM33o6f1VmPFgfyz .doneText2,#mermaid-svg-aM33o6f1VmPFgfyz .doneText3{fill:#000 !important}#mermaid-svg-aM33o6f1VmPFgfyz .crit0,#mermaid-svg-aM33o6f1VmPFgfyz .crit1,#mermaid-svg-aM33o6f1VmPFgfyz .crit2,#mermaid-svg-aM33o6f1VmPFgfyz .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-aM33o6f1VmPFgfyz .activeCrit0,#mermaid-svg-aM33o6f1VmPFgfyz .activeCrit1,#mermaid-svg-aM33o6f1VmPFgfyz .activeCrit2,#mermaid-svg-aM33o6f1VmPFgfyz .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-aM33o6f1VmPFgfyz .doneCrit0,#mermaid-svg-aM33o6f1VmPFgfyz .doneCrit1,#mermaid-svg-aM33o6f1VmPFgfyz .doneCrit2,#mermaid-svg-aM33o6f1VmPFgfyz .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-aM33o6f1VmPFgfyz .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-aM33o6f1VmPFgfyz .milestoneText{font-style:italic}#mermaid-svg-aM33o6f1VmPFgfyz .doneCritText0,#mermaid-svg-aM33o6f1VmPFgfyz .doneCritText1,#mermaid-svg-aM33o6f1VmPFgfyz .doneCritText2,#mermaid-svg-aM33o6f1VmPFgfyz .doneCritText3{fill:#000 !important}#mermaid-svg-aM33o6f1VmPFgfyz .activeCritText0,#mermaid-svg-aM33o6f1VmPFgfyz .activeCritText1,#mermaid-svg-aM33o6f1VmPFgfyz .activeCritText2,#mermaid-svg-aM33o6f1VmPFgfyz .activeCritText3{fill:#000 !important}#mermaid-svg-aM33o6f1VmPFgfyz .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-aM33o6f1VmPFgfyz g.classGroup text .title{font-weight:bolder}#mermaid-svg-aM33o6f1VmPFgfyz g.clickable{cursor:pointer}#mermaid-svg-aM33o6f1VmPFgfyz g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-aM33o6f1VmPFgfyz g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-aM33o6f1VmPFgfyz .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-aM33o6f1VmPFgfyz .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-aM33o6f1VmPFgfyz .dashed-line{stroke-dasharray:3}#mermaid-svg-aM33o6f1VmPFgfyz #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz .commit-id,#mermaid-svg-aM33o6f1VmPFgfyz .commit-msg,#mermaid-svg-aM33o6f1VmPFgfyz .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-aM33o6f1VmPFgfyz g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-aM33o6f1VmPFgfyz g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-aM33o6f1VmPFgfyz g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-aM33o6f1VmPFgfyz .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-aM33o6f1VmPFgfyz .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-aM33o6f1VmPFgfyz .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-aM33o6f1VmPFgfyz .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-aM33o6f1VmPFgfyz .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-aM33o6f1VmPFgfyz .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-aM33o6f1VmPFgfyz .edgeLabel text{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-aM33o6f1VmPFgfyz .node circle.state-start{fill:black;stroke:black}#mermaid-svg-aM33o6f1VmPFgfyz .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-aM33o6f1VmPFgfyz #statediagram-barbEnd{fill:#9370db}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-state .divider{stroke:#9370db}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-aM33o6f1VmPFgfyz .note-edge{stroke-dasharray:5}#mermaid-svg-aM33o6f1VmPFgfyz .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-aM33o6f1VmPFgfyz .error-icon{fill:#522}#mermaid-svg-aM33o6f1VmPFgfyz .error-text{fill:#522;stroke:#522}#mermaid-svg-aM33o6f1VmPFgfyz .edge-thickness-normal{stroke-width:2px}#mermaid-svg-aM33o6f1VmPFgfyz .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-aM33o6f1VmPFgfyz .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-aM33o6f1VmPFgfyz .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-aM33o6f1VmPFgfyz .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-aM33o6f1VmPFgfyz .marker{fill:#333}#mermaid-svg-aM33o6f1VmPFgfyz .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-aM33o6f1VmPFgfyz {color: rgba(0, 0, 0, 0.75);font: ;}

数据类型
基本数据类型
引用数据类型
整数型
浮点型
字符型
布尔型
String
字节型
短整型
整型
长整型
单精度浮点型
双精度浮点型
char
boolean
int
byte
short
long
float
double

3.2 变量定义

定义一个变量的格式:

数据类型 变量名 = 初始值 ;
public class Define {public static void main(String[] args) {byte a = 127;short b = 32767;int c = 2147483647;long d = 9223372036854775807L;float e = 0.12345678F;double f = 0.1234567890123456;char g = 'A';boolean h = true;String i = "你好,world";}
}

3.3 基础运算

基本数据类型的变量可以进行 加:+ 减:- 乘:* 除:/ 取余:% 运算,结果赋值给其对应数据类型的变量。

public class Calculate {public static void main(String[] args) {int a = 5;int b = 2;int add = a + b;int sub = a - b;int mul = a * b;int div = a / b;int rem = a % b;System.out.println("a b 和为:" + add);System.out.println("a b 差为:" + sub);System.out.println("a b 积为:" + mul);System.out.println("a b 商为:" + div);System.out.println("a b 余为:" + rem);}
}

运行结果:

String可以通过+来拼接其他的字符串或基本类型。

public class Calculate {public static void main(String[] args) {String a = "Hello";String b = "World";String c = a + b;System.out.println("c为:" + c);}
}

运行结果:

四、判断/循环/数组

4.1 判断

判断常用if语句,其格式:

if (boolean类型的判断) {true时执行这里;
} else {false时执行这里;
}

4.2 循环

循环常用for语句,其格式:

for (循环前的准备; boolean类型的循环执行条件; 单次循环结束时的动作) {每次循环的动作;
}

4.3 数组

数组是一个类型的数据的集合,其格式:

数据类型[] 数组名 = { 成员1 , 成员2 , 成员3 , ... }

数据类型可以使所有的基本数据类型或引用数据类型,但是同一数组只能包含其声明的类型的数据。数组的成员个数为数组的长度(length),每个成员的下标(index)从0开始依次增加,所以一个数组成员的全部下标为0 ~ length-1。单个成员可以通过 数组名[下标] 来赋值或者访问。

4.4 遍历

1° 遍历

遍历是指将一个数组的全部成员依次审查一遍,通常可以依靠for循环来实现。(这里的遍历是字面意思,并非通过迭代器实现的遍历方法)

public class iterate {public static void main(String[] args) {int[] arr = { 2, 4, 6, 8, 10, 12 };for (int i = 0; i < arr.length; i++) {System.out.println(arr[i]);}}
}

运行结果:

遍历数组时,还可以用for-each循环,其格式:

for (数组的数据类型 变量名 : 数组名){}
public class iterate {public static void main(String[] args) {int[] arr = { 2, 4, 6, 8, 10, 12 };for (int i : arr) {System.out.println(i);}}
}

运行结果:

for-each循环是依靠迭代器实现的。 普通for循环可以进行与下标有关的操作,其他情况下用加强for循环更加简洁明了。

2° 遍历+挑选

通过循环中增加一个判断来实现。
在一个String数组中,挑选出姓张的人和姓李的人:

public class Name {public static void main(String[] args) {String[] arr = { "张大炮", "李狗蛋", "赵铁柱", "王建国", "张二狗", "林待育", "李大壮", "张三疯" };for (int i = 0; i < arr.length; i++) {if (arr[i].startsWith("张")) {System.out.println(arr[i]);}}System.out.println("******");for (String name : arr) {if (name.startsWith("李")) {System.out.println(name);}}}
}

运行结果:

3° 遍历+计数

4° 遍历+累加/累乘

5° 遍历+挑最小/挑最大

在遍历过程中,想要进行计数、累加/累乘、挑最小/挑最大操作,需要在循环前先声明一个变量来储存这个数据,然后在循环过程中操作。
一个整型数组,计数偶数个数,累加,累乘,挑出最大最小值:

public class Count {public static void main(String[] args) {int[] arr = { 43, 24, 56, 77, 47, 34, 25, 59, 63, 58, 74, 13, 17, 32 };int count = 0;int addUp = 0;int mulUp = 1;int max = arr[0];int min = arr[0];for (int i = 0; i < arr.length; i++) {if (arr[i] % 2 == 0) {count++;}addUp += arr[i];mulUp *= arr[i];if (arr[i] > max) {max = arr[i];}if (arr[i] < min) {min = arr[i];}}System.out.println("偶数个数为:" + count);System.out.println("和为:" + addUp);System.out.println("积为:" + mulUp);System.out.println("最大值为:" + max);System.out.println("最小值为:" + min);}
}

运行结果:

Day001-2021-07-29 变量定义/数据类型/基础运算 判断/循环/数组相关推荐

  1. 新手如何理解一个Web应用的构建(2021.07.29更新)

    Web应用构建 ==前言== 我为什么写这篇文章? 适合什么样的人看? ==摘要== 步骤汇总 (1)网站定位与功能设定 (2)信息架构 (3)UI设计 (4)应用架构 (5)开发 (6)部署 (7) ...

  2. 【Python】基础之变量、数据类型基础操作

    文章目录 一.输入函数Print 二.注释 三.输出函数input 四.变量 4.1 变量的赋值 4.2 变量命名规则 4.3 内部保留关键字 4.4 同时为多个变量赋值 五.标准数据类型 5.1 整 ...

  3. Scala语法(一) 基础语法(变量常量判断循环数组集合)

    前言 在前面的章节中, 我们介绍了如何在Eclipse内安装Scala环境. 本章开始, 我们将讲解下Scala的基本语法. PS: 1. 个人虽然没有想转Scala语言开发的思想, 但是近来Scal ...

  4. Java基础学习笔记(基本规范、变量定义、运算符、分支/循环结构、函数)

    文章目录 Java概述与环境搭建 Java历史 Java语言特点 Java执行机制 安装jdk 环境变量配置 乱码问题解决 基本规范 简单Java代码 编译运行 注释 语法规则 变量类型 声明方式 基 ...

  5. python保存数据型变量_Python基础学习笔记(一)变量与数据类型

    https://m.toutiao.com/is/J3fN6eK/ Python是一门易学的面向对象的程序设计语言,可以轻易地完成界面.文件.封装等高阶需求,可移植性好,有非常多功能强大的库与包,如N ...

  6. python 去掉双引号_Python基础学习笔记(一)变量与数据类型

    Python是一门易学的面向对象的程序设计语言,可以轻易地完成界面.文件.封装等高阶需求,可移植性好,有非常多功能强大的库与包,如Numpy(数值计算).SciPy(数学.科学与工程计算).Matpl ...

  7. 笔记整理1----Java语言基础(一)01 变量与数据类型+02 运算符与表达式+03 条件判断与循环语句+04 JAVA数组+05 函数与方法

    01 变量与数据类型+02 运算符与表达式+03 条件判断与循环语句+04 JAVA数组+05 函数与方法 第01天 java基础知识 今日内容介绍  Java概述.helloworld案例  工 ...

  8. pycharm 类型注释_学习Python第一步,变量与数据类型

    Python是一门易学的面向对象的程序设计语言,可以轻易地完成界面.文件.封装等高阶需求,可移植性好,有非常多功能强大的库与包,如Numpy(数值计算).SciPy(数学.科学与工程计算).Matpl ...

  9. python3判断变量存在_Python3基础 list in/not in 判断一个变量是否在列表中存在

    Python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 Conda : 4.5.11 typesetting : Markdown ...

  10. c语言字符指针初始化赋值,C语言_指针变量的赋值与运算,很详细详解

    指针变量的赋值 指针变量同普通变量一样,使用之前不仅要定义说明, 而且必须赋予具体的值.未经赋值的指针变量不能使用, 否则将造成系统混乱,甚至死机.指针变量的赋值只能赋予地址, 决不能赋予任何其它数据 ...

最新文章

  1. 我的Ubuntu体验
  2. 爬虫神器:超炫酷的自动化工具 Selenium
  3. 腾讯微博发表带图片的微博
  4. 云计算实战系列十二(Linux系统优化)
  5. 初中 计算机文化知识,计算机文化知识(Computer literacy).doc
  6. 软件开发 —— 极限编程(XP:Extreme Programming)
  7. 合理安排计算顺序避免溢出
  8. idea引入oracle依赖包,MAC下intellij idea导入ojdbc6.jar
  9. 用谷歌浏览器下载网页视频
  10. dart语言和PHP,如何以Dart语言完全转储/打印变量到控制台?
  11. 20.溢出文本用省略号表示
  12. 令牌桶算法的python实现,人人都可以玩算法
  13. [更新1.0:补丁绕过]CVE-2020-14882: Weblogic Console HTTP 远程代码执行漏洞通告
  14. Android问题集锦(六)- adb不是内部或外部命令解决方法
  15. 傻子,疯子,一根筋的人才能创业成功!
  16. ios自动订阅服务器,iOS IAP - 自动续期订阅
  17. php类和对象教程,php类和对象
  18. 如何解除计算机远程控制,如何远程控制另一台电脑?
  19. 程序猿的口味-从C++STL聊到MSYS2-Qt
  20. matlab函数用法

热门文章

  1. 索尼 swiftkey_iOS8 3rd Party键盘的评测-SwiftKey和Swype
  2. Microsoft Visual Studio 2005中使用水晶报表详细说明
  3. 从0到1,构建商业分析模型
  4. Unraid USB启动盘怎么更换和重新获取注册码密钥?
  5. 用c语言用*组成C字母,C语言字符集由字母,数字,空格,标点符号和特殊字符组成...
  6. 如何申请CSDN博客专栏
  7. ISO27017云服务信息安全管理体系认证
  8. crossover程序错误_如何使用Crossover在Linux上安装Windows应用程序
  9. 稳定性测试怎么测_药物稳定性试验的细枝末节该如何处理?
  10. 流利阅读 2019.1.8 Taylor Swift used facial recognition software to detect stalkers at LA concert