Txhua tus neeg siv tsawg kawg ib zaug, tab sis xav txog kev tsim nws tus kheej cov kev pab cuam uas yuav ua tau tsuas yog cov kev ua uas tus neeg siv nws tus kheej nug. Qhov ntawd yuav zoo heev. Los tsim ib qho kev pab cuam koj xav tau kev paub txog txhua hom lus. Qhov twg Xaiv koj xwb, vim hais tias saj thiab xim ntawm tag nrho cov cim yog txawv.
Peb yuav saib sau qhov Java program. Java yog ib hom lus nrov tshaj plaws thiab cov lus cog tseg. Yuav ua hauj lwm nrog hom lus, peb yuav siv qhov chaw zov me nyuam ntawm IntelliJ IDEA. Tau kawg, koj tuaj yeem tsim cov kev pabcuam hauv Notepad li niaj zaus, tabsis siv tus IDE tshwj xeeb tseem yoojyim dua, vim qhov nruab nrab nws tus kheej yuav taw qhia koj kom raug thiab pab cuam rau txoj haujlwm.
Download tau IDEA IntelliJ
Mloog zoo!
Ua ntej koj pib, xyuas kom tseeb tias koj muaj qhov tseeb version Java.Download tau qhov tseeb version ntawm Java
Yuav ua li cas rau nruab IDEA IntelliJ
1. Ua raws li qhov txuas saum toj no thiab nyem ces;
2. Koj yuav hloov mus rau qhov kev xaiv ntawm version. Xaiv qhov dawb version ntawm Community thiab tos rau cov ntaub ntawv kom thauj khoom;
3. Nruab qhov program.
Yuav siv li cas IDEA IDEA
1. Khiav txoj haujlwm thiab tsim ib qhov project tshiab;
2. Hauv qhov rais qhib, nco ntsoov tias hom lus programming yog Java thiab nias "Tom ntej";
3. Nyem "Next" dua. Hauv qhov rais nram qab no, hais kom meej qhov chaw nyob thiab npe lub npe. Nyem "Finish".
4. Lub qhov rais qhib qhov rai. Tam sim no koj yuav tsum ntxiv ib chav kawm. Ua li no, yuav tsum ua kom tiav cov ntawv nplais thiab txoj cai-nias rau ntawm src folder, "New" -> "Java Class".
5. Teeb lub npe hauv chav kawm.
6. Thiab tam sim no peb tuaj yeem ncaj qha mus rau lub cajmeem. Yuav ua li cas los tsim ib qho kev pab cuam rau lub computer? Yooj yim heev! Koj tau qhib lub thawv ntawv hloov. Ntawm no peb yuav sau qhov program code.
7. Tau pib tsim cov hoob kawm tseem ceeb. Hauv hoob no, nkag mus rau hauv pej xeem zoo li qub (String [] args) thiab muab cov hlua khaus {}. Txhua qhov project yuav tsum muaj ib txoj kev loj.
Mloog zoo!
Thaum sau ntawv rau ib qho kev pab cuam, koj yuav tsum ua raws nraim li cov syntax. Qhov no txhais tau hais tias txhua txhua tus commands yuav tsum tau sau kom raug, txhua tus qhib lub khawm yuav tsum raug kaw, tom qab txhua kab yuav tsum muaj lub semicolon. Tsis txhob txhawj - Wednesday yuav pab koj thiab kom sai.
8. Txij li thaum peb tab tom sau qhov kev pab cuam yooj yim, nws tseem yog ntxiv rau qhov System.out.print ("Hello, world!");
9. Tam sim no xis rau lub npe hauv chav kawm ntawv thiab xaiv "Run".
10. Yog tias txhua yam ua tiav lawm, lub npe "Nyob zoo, ntiaj teb!" Yuav tso tawm kom pom hauv qab no.
Pab kev zoo siab! Koj nyuam qhuav sau koj thawj Java qhov kev pab cuam.
Cov no tsuas yog cov kev qhia ntawm lub cajmeem xwb. Yog hais tias koj tau cog lus rau kev kawm lus, ces koj yuav tsim tau cov kev pab loj dua thiab zoo dua qhov yooj yim "Nyob zoo ntiaj teb!".
Thiab IDEA IntelliJ yuav pab koj nrog qhov no.
Download IntelliJ IDEA los ntawm lub tsev kawm ntawv
Saib kuj: Lwm cov kev pabcuam rau lub cajmeem