Txhua tus neeg siv tsawg kawg ib zaug, tab sis xav txog kev tsim nws tus kheej qhov kev pabcuam tshwj xeeb uas yuav ua tsuas yog cov yeeb yam uas tus neeg siv nws tus kheej yuav nug. Tias yuav zoo. Txhawm rau tsim ib qho program twg koj xav tau kev paub txog hom lus. Tus twg? Tsuas yog koj xaiv, vim tias qhov saj thiab xim ntawm txhua tus npiv zas yog qhov sib txawv.
Peb yuav xav tias yuav sau cov program li cas hauv Java. Java yog ib qho ntawm cov lus nrov tshaj plaws thiab muaj lus nyob ntawm cov lus programming. Txhawm rau ua haujlwm nrog cov lus, peb yuav siv IntelliJ IDEA ib puag ncig lub cajmeem. Yog lawm, koj tuaj yeem tsim cov programmes hauv Notepad li ib txwm, tab sis siv IDE tshwj xeeb tseem yooj yim dua, vim ib puag ncig nws tus kheej yuav qhia qhov tsis raug rau koj thiab pab koj qhov program.
Muab IntelliJ IDEA
Saib xyuas!
Ua ntej koj pib, nco ntsoov tias koj muaj Java version kawg los nruab.Rub tawm qhov tseeb ntawm Java
Yuav ua li cas rau nruab IntelliJ IDEA
1. Ua raws li cov kab ntawv txuas saud thiab nyem Download;
2. Koj yuav tsum pauv mus rau qhov kev xaiv ntawm version. Xaiv cov qauv dawb ntawm Lub Zej Zog thiab tos cov ntaub ntawv rub tawm;
3. Nruab qhov program ntawv.
Yuav siv IntelliJ IDEA li cas
1. Khiav qhov haujlwm thiab tsim txoj haujlwm tshiab;
2. Nyob rau hauv lub qhov rai uas qhib, nco ntsoov tias cov lus programming tau xaiv los ntawm Java thiab nyem "Next";
3. Nyem "Next" dua. Ntawm lub qhov rais tom ntej, qhia kom meej cov ntaub ntawv chaw nyob thiab qhov project lub npe. Nyem Tiav.
4. Qhov haujlwm qhib qhov rai tau qhib. Tam sim no koj yuav tsum ntxiv chav kawm. Txhawm rau ua qhov no, qhib qhov project nplaub tshev thiab txoj nyem rau ntawm cov nplaub tshev src, "Tshiab" -> "Java Class".
5. Tuav cov npe hauv chav kawm.
6. Thiab tam sim no peb tuaj yeem txuas ncaj qha mus rau lub cajmeem. Yuav tsim cov program rau lub computer li cas? Yooj yim heev! Koj tau qhib phau ntawv kho teb. Nov yog qhov peb yuav sau cov program code.
7. Cov chav kawm tseem ceeb yog cia li tau tsim. Hauv chav kawm no, sau cov qauv rau pej xeem zoo li qub tsis muaj ntsiab (Txoj hlua [] sib cav) thiab muab nkhaus nkhaus {}. Txhua qhov haujlwm yuav tsum muaj ib txoj kev tseem ceeb.
Saib xyuas!
Thaum sau cov program, koj yuav tsum ua tib zoo saib xyuas cov ntawv syntax. Qhov no txhais tau tias txhua lo lus txib yuav tsum tau sau kom raug, txhua txoj phuam qhib yuav tsum raug kaw, lub semicolon yuav tsum muab tso tom qab txhua kab. Tsis txhob txhawj xeeb - ib puag ncig yuav pab tau koj thiab sai.
8. Txij li thaum peb sau qhov yooj yim program, nws tseem tsuas yog ntxiv cov lus txib System.out.print ("Nyob zoo, ntiaj teb!");
9. Tam sim no luag tau nyem rau ntawm chav kawm lub npe thiab xaiv "Khiav".
10. Yog tias txhua yam ua tiav zoo, cov lus nkag "Nyob Zoo, ntiaj teb!" Yuav muab tso rau hauv qab no.
Pab kev zoo siab! Koj nyuam qhuav sau koj qhov Java program thawj.
Cov no tsuas yog lub hauv paus ntawm lub cajmeem. Yog tias koj mob siab kawm cov lus, tom qab ntawd koj tuaj yeem tsim ntau qhov loj dua thiab muaj txiaj ntsig ntau dua li kev ua haujlwm yooj yim "Nyob zoo ntiaj teb!".
Thiab IntelliJ IDEA yuav pab koj nrog qhov no.
Rub tawm IntelliJ IDEA los ntawm cov vev xaib official
Saib ntxiv mus: Lwm cov txheej txheem programmes