第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

Java入門第一季(IDEA工具)升級版

難度入門
時長 5小時 0分
學(xué)習(xí)人數(shù)
綜合評分9.57
6026人評價 查看評價
9.8 內(nèi)容實用
9.5 簡潔易懂
9.4 邏輯清晰
  • equals()用于判斷字符串的內(nèi)容是否相同。

    if(條件1){

    ? ?if(條件2){

    ? ? ?輸出代碼塊1

    }else{

    輸出代碼塊2

    }

    }else{

    輸出代碼塊3

    }

    查看全部
  • if(){

    }else if(){

    }else{

    }

    "60>age>40"這種表達是錯的;應(yīng)該是”60>age&&age>40"

    查看全部
  • if(){

    }else{

    }

    查看全部
  • 注意"="與”==“的區(qū)別

    查看全部
  • 現(xiàn)在去官網(wǎng)下載的版本都是2022版的了里面內(nèi)容好不一樣
    查看全部
    1 采集 收起 來源:安裝IntellJ IDEA

    2022-08-26

  • public?class?Demo2{
    ????public?static?void?main(String[]args){
    ????int?classNum=3;
    ????int?stuNum=4;
    ????double?sum=0;
    ????double?avg=0;
    ????for(inti=1;i<=classNum;i++){
    ????????System.out.println("***請輸入第"+i+"個班成績***");
    ????????sum=0;
    ????}
    ????????for(intj=1;j<=stuNum;j++){
    ????????System.out.println("***請輸入第"+i+"個學(xué)員成績***");
    ????????int?score?=?new?Scanner(System.in).nextInt();
    ????????sum=sum+score;
    ????????}
    ????????avg=sum/stuNum;
    ????????System.out.println("第"+i+"個班級的學(xué)生平均分為:"+avg);
    ????}
    }
    查看全部
    0 采集 收起 來源:進階練習(xí)

    2022-08-25


  • 外層循環(huán)sum要置零

    查看全部
    0 采集 收起 來源:進階練習(xí)

    2022-08-25

  • 輸入數(shù)據(jù)使用scanner工具類型

    System.out.print("用戶輸入的初始分數(shù)是:"+score)?//去掉println的ln就可以實現(xiàn)數(shù)據(jù)的不換行操作
    String?變量=new?Scanner(System.in).next();
    int?變量=new?Scanner(System.in).nextInt();
    查看全部
  • 多個字符,可以使用 String 類型

    單個字符,可以使用 char 類型

    數(shù)字為整數(shù),可以使用 int 類型

    帶有小數(shù),可以使用 double 類型

    值為是或否,表示邏輯上的真或假,使用 boolean 類型

    查看全部
  • http://img1.sycdn.imooc.com//62fe57d6000148b207800607.jpgs

    查看全部
    0 采集 收起 來源:JDK安裝演示

    2022-08-18

  • 62fe4b0d00017fcd12040487.jpg標識符不可以數(shù)字開頭%@
    查看全部
    0 采集 收起 來源:認識Java標識符

    2022-08-18

  • 大寫D錯誤
    viod62fe4a260001393a11190160.jpg
    查看全部
  • ? ? ? ? //提示信息

    ? ? ? ? System.out.print("您要開始第幾周學(xué)習(xí)啦,直接輸入數(shù)字吧:");

    ? ? ? ? //設(shè)置變量存儲接收到的數(shù)據(jù)

    ? ? ? ? // int week = new Scanner(System.in).nextInt();

    ? ? ? ? int week=25;

    ? ? ? ? //計算今天是幾月(1-月第一周、4-月第4周)

    ? ? ? ? int month= (week+3)/4;

    ? ? ? ?

    ? ? ? ? //計算輸入的周是這個月的第幾周

    ? ? ? ? int weekday;

    ? ? ? ? weekday = week-(month-1)*4;

    ? ? ? ? //提示信息

    ? ? ? ? System.out.println("以下是您本月的學(xué)習(xí)計劃, √ 代表當(dāng)周學(xué)習(xí)任務(wù)");

    ? ? ? ??

    ? ? ? ? System.out.println("=======================================");

    ? ? ? ? System.out.println("這是第"+month+"個月的,第"+weekday+"周的學(xué)習(xí)內(nèi)容。");

    ? ? ? ? //利用for循環(huán),找到數(shù)組中對應(yīng)這個月的內(nèi)容輸出

    ? ? ? ? for(int i=month*4-4; i<=month*4-1;i++){

    ? ? ? ? ? ? //根據(jù)當(dāng)前月第幾周,在輸出此行時,前面添加“√”

    ? ? ? ? ? ? if(i==week-1){

    ? ? ? ? ? ?

    ? ? ? ? ? ? ? System.out.println("√"+contentList[i]);? ?

    ? ? ? ? ? ? }else{

    ? ? ? ? ? ? ? ?System.out.println(contentList[i]);?

    ? ? ? ? ? ? }


    ? ? ? ? ? ? if(i>=34)

    ? ? ? ? ? ? break;

    ? ? ? ? }? ??

    ? ? ? ? ? ??

    ? ? }

    }

    查看全部
    0 采集 收起 來源:編程練習(xí)

    2022-08-18

  • import java.util.Scanner;


    public class HelloWorld {

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

    ? ? ? ? //創(chuàng)建String數(shù)組,并為每一個元素賦值。賦值內(nèi)容為第幾周+學(xué)習(xí)內(nèi)容

    ? ? ? ? String[] contentList = new String[35];

    ? ? ? ? contentList[0] = "【第1周】環(huán)境搭建與語法入門";

    ? ? ? ? contentList[1] = "【第2周】Java語法之循環(huán)、數(shù)組與方法";

    ? ? ? ? contentList[2] = "【第3周】面向?qū)ο笾庋b與繼承";

    ? ? ? ? contentList[3] = "【第4周】面向?qū)ο笾畣卫J脚c多態(tài)";

    ? ? ? ? contentList[4] = "【第5周】常用工具類(上)";

    ? ? ? ? contentList[5] = "【第6周】常用工具類(下)";

    ? ? ? ? contentList[6] = "【第7周】常用工具類(下)";

    ? ? ? ? contentList[7] = "【第8周】前端基礎(chǔ)之HTML與CSS";

    ? ? ? ? contentList[8] = "【第9周】前端基礎(chǔ)之JavaScript與綜合案例";

    ? ? ? ? contentList[9] = "【第10周】Java Web基礎(chǔ)";

    ? ? ? ? contentList[10] = "【第11周】Java Web基礎(chǔ)";

    ? ? ? ? contentList[11] = "【第12周】常用功能與過濾器";

    ? ? ? ? contentList[12] = "【第13周】監(jiān)聽器與項目實戰(zhàn)";

    ? ? ? ? contentList[13] = "【第14周】監(jiān)聽器與項目實戰(zhàn)";

    ? ? ? ? contentList[14] = "【第15周】MySQL基礎(chǔ)";

    ? ? ? ? contentList[15] = "【第16周】MySQL基礎(chǔ)";

    ? ? ? ? contentList[16] = "【第17周】Java數(shù)據(jù)庫開發(fā)基礎(chǔ)";

    ? ? ? ? contentList[17] = "【第18周】框架前置知識";

    ? ? ? ? contentList[18] = "【第19周】MyBatis基礎(chǔ)";

    ? ? ? ? contentList[19] = "【第20周】MyBatis實現(xiàn)OA系統(tǒng)項目實戰(zhàn)";

    ? ? ? ? contentList[20] = "【第21周】MyBatis實現(xiàn)OA系統(tǒng)項目實戰(zhàn)";

    ? ? ? ? contentList[21] = "【第22周】Linux環(huán)境搭建與Redis應(yīng)用";

    ? ? ? ? contentList[22] = "【第23周】Spring基礎(chǔ)";

    ? ? ? ? contentList[23] = "【第24周】Spring基礎(chǔ)";

    ? ? ? ? contentList[24] = "【第25周】Spring基礎(chǔ)";

    ? ? ? ? contentList[25] = "【第26周】SSM開發(fā)社交網(wǎng)站";

    ? ? ? ? contentList[26] = "【第27周】Spring Boot電商項目實戰(zhàn)";

    ? ? ? ? contentList[27] = "【第28周】Spring Boot電商項目實戰(zhàn)";

    ? ? ? ? contentList[28] = "【第29周】面試";

    ? ? ? ? contentList[29] = "【第30周】多線程與分布式";

    ? ? ? ? contentList[30] = "【第31周】多線程與分布式";

    ? ? ? ? contentList[31] = "【第32周】Spring Cloud基礎(chǔ)";

    ? ? ? ? contentList[32] = "【第33周】Spring Cloud電商實戰(zhàn)";

    ? ? ? ? contentList[33] = "【第34周】Spring Cloud電商實戰(zhàn)";

    ? ? ? ? contentList[34] = "【第35周】Zookeeper+Dubbo應(yīng)用與面試";


    ? ? ? ? //提示信息

    ? ? ? ? System.out.print("您要開始第幾周學(xué)習(xí)啦,直接輸入數(shù)字吧:");

    ? ? ? ? //設(shè)置變量存儲接收到的數(shù)據(jù)

    ? ? ? ? // int week = new Scanner(System.in).nextInt();

    ? ? ? ? int week=33;

    ? ? ? ? //計算今天是幾月(1-月第一周、4-月第4周)

    ? ? ? ? int month= (week+3)/4;

    ? ? ? ?

    ? ? ? ? //計算輸入的周是這個月的第幾周

    ? ? ? ? int weekday;

    ? ? ? ? weekday = week-(month-1)*4;

    ? ? ? ? //提示信息

    ? ? ? ? System.out.println("以下是您本月的學(xué)習(xí)計劃, √ 代表當(dāng)周學(xué)習(xí)任務(wù)");

    ????????System.out.println("這是第"+month+"個月的,第"+weekday+"周的學(xué)習(xí)內(nèi)容。");

    ? ? ? ? System.out.println("=======================================");

    ? ? ? ?

    ? ? ? ? //利用for循環(huán),找到數(shù)組中對應(yīng)這個月的內(nèi)容輸出

    ? ? ? ? for(int i=month*4-4; i<=month*4-1;i++){

    ? ? ? ? ? ? //根據(jù)當(dāng)前月第幾周,在輸出此行時,前面添加“√”

    ? ? ? ? ? ? if(i==week-1){

    ? ? ? ? ? ? ? System.out.println("√"+contentList[i]);? ?

    ? ? ? ? ? ? }else{

    ? ? ? ? ? ? ? ?System.out.println(contentList[i]);?

    ? ? ? ? ? ? }


    ? ? ? ? ? ? if(i>=34)

    ? ? ? ? ? ? break;

    ? ? ? ? }? ??

    ? ? ? ? ? ??

    ? ? }

    }

    查看全部
    0 采集 收起 來源:編程練習(xí)

    2022-08-18

    • 記得要加;? ??

    • 變量名不能以數(shù)字,除下劃線和美元符號之外的符號以及Java關(guān)鍵詞開頭

    • 變量值要加引號??

    • 為float變量賦值要加f,char要加單引號?

    • 自動類型轉(zhuǎn)換時目標類型大于源類型,通過字節(jié)數(shù)判斷

    • 常量值要用大寫

    • 文檔注釋以/**開頭*/結(jié)尾? ?多行注釋以/*開頭*/結(jié)尾? 單行注釋以//開頭文末自動結(jié)尾??

    • 注意駝峰命名法

    http://img1.sycdn.imooc.com//62fb38fb0001b8f604930247.jpg

    http://img1.sycdn.imooc.com//62fb38fb000167bd07000130.jpg

    查看全部

舉報

0/150
提交
取消
課程須知
學(xué)習(xí)中需要用到這些工具: —JDK-Java開發(fā)環(huán)境 —IDEA編程開發(fā)工具 課程適合零基礎(chǔ)的同學(xué),只要你對Java有興趣,都可以0成本完成入門!
老師告訴你能學(xué)到什么?
1、會配置Java開發(fā)環(huán)境,并使用工具進行程序開發(fā) 2、掌握Java中基本語法的使用并入門

微信掃碼,參與3人拼團

微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復(fù)購買,感謝您對慕課網(wǎng)的支持!