Cov txheej txheem:

Kuv Thawj Java Daim Ntawv Thov: 6 Kauj Ruam
Kuv Thawj Java Daim Ntawv Thov: 6 Kauj Ruam

Video: Kuv Thawj Java Daim Ntawv Thov: 6 Kauj Ruam

Video: Kuv Thawj Java Daim Ntawv Thov: 6 Kauj Ruam
Video: Jack GV - Kuv Thov Txim Ft. Vicky Yang (Official Audio) 2024, Hlis ntuj nqeg
Anonim
Kuv Thawj Daim Ntawv Thov Java
Kuv Thawj Daim Ntawv Thov Java

Koj puas tseem xav tsim koj tus kheej daim ntawv thov java tab sis tseem ncua nws rau qee qhov laj thawj? Koj puas hnov koj tus kheej hais tias "Tag kis thaum kawg kuv yuav ua nws"? Tab sis qhov tag kis yeej tsis los. Yog li, koj yuav tsum pib tam sim no.

Tam sim no yog lub sijhawm kom koj txhais tes qias neeg. Thaum twg los xij peb tham txog kev tsim txoj haujlwm, thawj qhov uas peb yuav tsum txiav txim siab yog hom lus programming thiab IDE (Kev Txhim Kho Ib Leeg Ib puag ncig) peb yuav siv. Tam sim no, muaj ntau yam cuab yeej thiab IDEs muaj rau kev yooj yim ntawm cov tsim tawm. Ib txhia ntawm lawv yog ib qho yooj yim li luag thiab poob cov khoom thaum lwm tus xav tau ntau dua coding.

Yog li kev xaiv IDE tag nrho yog nyob ntawm koj. Txhawm rau nkag siab zoo ntawm IDEs thiab lawv qhov tsim nyog koj tuaj yeem saib ntau cov lus qhia ntawm cov ncauj lus no.

Khoom siv

Ib lub computer, internet txuas thiab txhawb ntau yam

Kauj ruam 1: Rub tawm IDE thiab JDK

Rub tawm IDE thiab JDK
Rub tawm IDE thiab JDK

Hauv no

qhia peb yuav tsim peb thawj qhov haujlwm hauv JAVA siv Eclipse IDE. Yog li, thawj yam ua ntej.

Lub taub hau mus rau JDK Downloadto nruab java JDK.

Xaiv cov software nyob ntawm koj li kev ua haujlwm. Tom qab nws tau rub tawm, unzip nws thiab teeb tsa nws (tus txheej txheem teeb tsa yuav coj koj los ntawm nws).

Tom qab ntawd rau IDE, mus rau Eclipse Rub thiab rub tawm qhov dab noj hnub tshiab tshaj plaws nyob ntawm koj lub operating system.

Nruab lawv los ntawm kev ua raws cov lus qhia.

Kauj Ruam 2: Txheej Txheem Txhim Kho

Txheej Txheem Txhim Kho
Txheej Txheem Txhim Kho

Tom qab kev teeb tsa, koj yuav tau txais lub vijtsam no:

Kauj Ruam 3: Xaiv Chaw Ua Haujlwm

Xaiv Chaw Ua Haujlwm
Xaiv Chaw Ua Haujlwm

Tom qab txheej txheem pib, lub launcher yuav nug koj kom xaiv chaw ua haujlwm qhov twg tag nrho koj cov ntaub ntawv thiab cov haujlwm yuav raug cawm. Los ntawm lub neej ntawd, nws yuav xaiv tus tsav uas koj tau teeb tsa dab noj hnub tab sis koj tuaj yeem hloov nws qhov chaw ib yam.

Kauj Ruam 4: Pib Pib Txheej Txheem

Pib Pib Txheej Txheem
Pib Pib Txheej Txheem

Tom qab koj tau xaiv daim nplaub tshev rau chaw ua haujlwm, lub launcher yuav pib IDE. Koj yuav tau txais qhov screen no.

Kauj ruam 5:

Duab
Duab

Tom qab pib txheej txheem, lub vijtsam txais tos yuav tshwm. Ntawm no koj tuaj yeem pom ntau qhov kev xaiv zoo li tsim qhov tshiab java program, tshuaj xyuas koj li IDE teeb tsa kev teeb tsa, tsim koj li Hello World Application, Tutorials thiab lwm yam.

Raws li qhov koj xav tau, koj xaiv pawg tsim nyog.

Kauj ruam 6: Coding

Coding
Coding

Txij li qhov no yuav yog koj thawj qhov haujlwm yog li dab tsi ntxiv yog lub tswv yim zoo dua li ua koj li Hello World Application.

Nyem rau ntawm Tsim Daim Ntawv Thov Nyob Hauv Ntiaj Teb thiab tam sim no koj tau pib ua haujlwm coding.

Lub sab xis sab xis qhia pom cov txheej txheem coj los ntawm qhov uas koj tuaj yeem yooj yim tsim koj thawj qhov haujlwm.

Lossis koj tuaj yeem ua raws cov theem hauv qab no:

1. Nyem rau ntawm cov ntaub ntawv los tsim qhov tshiab Java project.

2. Tom qab ntawv nyob rau sab laug, nyem rau ntawm src (Luv rau qhov chaw) los tsim cov pob tshiab. Kev sab hauv pob nyem los tsim chav kawm java tshiab. Koj tuaj yeem sau tus txheej txheem tseem ceeb lossis tuaj yeem yooj yim zuam lub npov txhawm rau tsim chav kawm nrog txoj hauv kev sau ua ntej.

3. Hauv txoj hauv kev tseem ceeb, sau:

System.ot.println (“Nyob Zoo Ntiaj Teb!”);

4. Nyem rau lub pob ntsuab ua si kom khiav tsab ntawv.

Thiab Voila… koj nyuam qhuav tsim koj tus kheej lub nrig.

Nco ntsoov xyaum yog tus yuam sij kom ua tiav. Koj tuaj yeem pib los ntawm kev tsim cov ntawv me thiab yooj yim.

Pom zoo: