Java/C2/Nested-if/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:02 | Pdiang sngewbha sha ka spoken tutorial halor Nested-if and Ternary Operator in Java |
00:07 | Ha kaba kut jong kane ka tutorial phi dei ban lah ban
Batai shaphang Nested-If Statements bad Ternary Operators bad ban pyndonkam ia ki ha ka Java Program |
00:17 | Na bynta kane ka tutorial ngin pyndonkam
Ubuntu v 11.10, JDK 1.6, bad EclipseIDE 3.7.0 |
00:27 | Ban bud ia kane ka tutorial phi dei ban tip |
00:29 | shaphang ka jingpyndonkam ia ki relational bad logical operators |
00:33 | Bad ia ki if…else control flow statements |
00:36 | Lada em, na ka bynta ki tutorial ba iadei, sngewbha peit ia ka website jong ngi kumba la pyni hangne |
00:41 | Nested if Statements: Ia ka if statement kaba don hapoh kawei pat ka if statement lah ban khot ia ka, ka nested-if statement |
00:49 | Mynta to ngin peit ia ka syntax ban thoh ia ka Nested-if Statement. |
00:53 | Ha kane ka khep, lada condition 1 ka long true, nangta ka program ka wad ia ka condition 2. |
00:59 | Ia ka Condition 2 la ai na ka bynta kawei ka if statement |
01:03 | Lada ka condition 2 ka long true nangta ka program ka pyntrei ia ka Statement lane block 1 |
01:09 | Lym kumta ka pyntrei ia Statement lane block 2 |
01:13 | Lada condition 1 ka long false nangta ka program kan ym wad ia ka condition2 |
01:18 | Ha ka jingshisha kan leit beit sha ka else statement i.e block 3 |
01:24 | Mynta, to ngin pyrshang ia ka nuksa ban kham sngewthuh bha |
01:28 | Ngi don ia ka eclipse IDE bad ka shynrong kaba donkam ia ki code ba hadien |
01:32 | Ngi la dep shna ia ka class NesedIfDemo bad add ia ka main method ha ka |
01:37 | Ngin wad lada u number ba la ai u dei u even ne odd number |
01:42 | Ngin wad ruh ia ki negative number da kaba pyndonkam ia ka nested-if |
01:46 | Te, hapoh ka main method type: |
01:49 | int n=minus 5 semicolon |
01:54 | Ngi la dep shna ia u variable ‘n’ ban buh ia u negative number |
01:58 | Mynta, ngin thoh ia ka if condtions |
02:01 | Ha u lain ba bud, type: if(n<0) |
02:07 | Plie ki curly bracket. Nion enter |
02:10 | System.out.printlin hapoh ki bracket bad double quotes Negative number semicolon |
02:22 | Nyngkong ngi peit lada u number u dei negative |
02:25 | Lada hooid, nangta ngin ym wad ia u even lane odd |
02:29 | Lada u number um dei negative, ngin wad ia u even bad odd |
02:34 | Ha u lain babud, type else plie curly bracket. Nion enter |
02:42 | Mynta, lada ka jingpyntrei ka la poi ha ka bynta jong ka else |
02:45 | Ka mut ba u number ym dei u negative |
02:48 | Te, ngi wad ia u odd lane even hapoh kane bynta jong ka else |
02:52 | Type, if hapoh bracket n modulus 2 double equal to 0 plie ki curly bracket nion enter |
03:03 | System.out.printlin hapoh ki brackets bad double quotes Even number |
03:13 | Nangta type ia ka else part. Else plie curly bracket nion enter |
03:18 | Type. System.out.printlin hapoh ki bracket bad double quotes Odd number semicolon. |
03:29 | Te, ngi pyntikna ia u negative number ba yn um khein odd lane even |
03:34 | Mynta, to ngi peit ia ka jingtrei kam ka code |
03:37 | Save bad run ia ka file. Kumba ngi lah ban iohi, ngi ioh ia ka jingmih negative number |
03:43 | Mynta to ngin pyrshang ia u positive number |
03:46 | Pynkylla n=-5 to n=5 |
03:53 | Mynta save bad run ia ka file. |
03:57 | Kumba ngi iohi, ka jingmih ka long odd number kumba la khim lynti.. To ngin pyrshang ia u even number |
04:04 | Pynkylla n=5 to n=10. |
04:09 | Mynta save bad run ia ka file |
04:12 | Kumba ngi iohi, ka jingmih ka long even number kumba la khmih lynti. |
04:17 | Kane ka rukom ban kynthup ia ka if statement hapoh kawei pat la khot nested-if |
04:22 | Kam don jingkut ia ka jingbun ki nesting |
04:25 | Ka long kaba bha ban pynmlien ban ym leit palat ia ki 3 level jong ka nesting |
04:31 | Mynta ngin peit sha ternary operator.. |
04:33 | Nyngkong, to ngan pynkhuid ia ka main method |
04:37 | Ngi thoh ka program kaba divide ia u number da u 2 |
04:40 | Ka long ka program bym don kam hynrei ka don bynta ha kaba divide ia ki odd number. |
04:45 | Haba u 7 la divide da u 2. Ngi ioh 3 |
04:48 | Hynrei kumno lada ngin kwah ba ka jingmih kan long rounded off. |
04:50 | Kaba mut, haba u 7 la divide da u 2, ngi ioh ia 4 ym ia u 3 |
04:56 | Ha ka ktien ba suk, ngi kwah ia u number ba hadien. |
04:59 | Mynta to ngi peit kumno ban thoh ia kum kata ka program. Peit, hapoh main method type, int n, nHalf semicolon |
05:08 | Ngin buh ia u number ha u n bad ia u half number ha nHalf |
05:13 | Ha u lain babud, type n=5 semicolon |
05:18 | Ha u lain ba bud, type if hapoh bracket n modulus 2==0 plie ki curly bracket. Nion enter |
05:28 | Type: nHalf =n/2 semicolon. |
05:34 | Ha ka else part, type, hapoh curly brackets nHalf equal to hapoh bracket n+1 divide ia baroh da u 2 |
05:50 | Ngin wad lada u number u dei even lane odd bad leh ia division kat kum ka rukom. |
05:55 | Mynta, to ngi add ia ka print statement ban peit iaka jingtrei ka program. |
05:59 | Te, type,system.out.println hapoh bracket nHalf semicolon. |
06:11 | Mynta save bad run ia ka file. |
06:14 | Kumba ngi iohi, ka jingtmuh jong ngi la urlong. Ngi ioh ka jingmih ka long 3 ym 2 |
06:21 | Hynrei, lada ngi peit thuh, ngi leh ban buh ia ka value jong u variable katkum ka condition.. |
06:27 | Ka don bun ka syntax ban ia ka logic ha ka program jong ngi.. |
06:31 | Dei hangne ba u ternary operator u kam pynsuk ia ka code |
06:35 | Ternary operator u dei u conditional operator uba pynmih ia ka result kum nested if |
06:40 | Ka ai ka syntax ba lyngkot bad pynithuh da u question mark. |
06:45 | u shim lai operands ha ka juh ka por |
06:48 | To ngi pule shaphang ka syntax jong u Ternary Operator. |
06:53 | Ka expression ka dei ka condition ka ba dei ban wad |
06:56 | Operand I ka dei ka value jong u variable. Result kadei ka condition lada ka long true |
07:03 | Operand 2 ka dei ka value lada ka condition ka long false |
07:09 | Mynta to ngi peit kumno ban pyndonkam haka program jong ngi. |
07:12 | Nyngkong to ngin weng ia ka if else statement. |
07:17 | Type;nHalf equal to n modulus 2 double equal to 0 question mark n/2 colon hapoh brackets n+1 divide ia baroh da u 2 semicolon |
07:41 | Kane ka statement ka pyni |
07:43 | If 'n' is even, 'nHalf' is 'n by 2'. Otherwise it is 'n plus 1 by 2'. |
07:50 | To ngin peit ia ka jingtreikam. |
07:52 | Save bad run ia ka file Press Ctrl S bad Ctrl F11 key |
07:59 | Kumba ngi ioh, ka jingmih ka long kumba khmih lynti. |
08:02 | Ha kane ka rukom, ternary operator u pynduna ia ka jingkulmar ha ka code bad pynsuk ia ka jingpule |
08:09 | Ngi la poi sha kaba kut jong kane ka tutorial. |
08:11 | Ha kane ka tutorial, ngi la pule |
08:13 | Shaphang Nested-if Statement bad Ternary Operator bad |
08:15 | Ka jingpyndonkam ia ka Nested-if Statement bad Ternary Operator ha ka Java program |
08:22 | Mynta shim kane ka assignment halor Nested-if bad Ternary Operator. Thoh java program na bynta kine harum |
08:28 | Wad lada u number u dei even bad multiple jong u 11 pyndonkam nested if |
08:34 | Pyni ia u number ba heh duh napdeng ki ar ki number pyndonkam Ternary Operator. |
08:40 | Ba tip khambun shaphang ka Spoken Tutorial project, peit ia kane ka video ha ka link harum. |
08:45 | Ka batai lyngkot shaphang ka Spoken Tutorial Project. Lada phim don uba bandwith uba khlain, phi lah ban download bad peit ia ka. |
08:52 | Ka Spoken Tutorial Project team: |
08:54 | ka pynlong ia ki workshop da kaba pyndonkam ia ki spoken tutorial bad |
08:57 | Ai ki certificates ia kiba pass ha ka online test. Ban tip kham bniah, sngewbha thoh sha ka contact atspoken-tutorial.org |
09:07 | Ka spoken tutorial project ka dei shibynta na ka project “Talk to a Teacher” bad |
09:11 | La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Government of India |
09:17 | Kham bun ka jingtip halor kane ka mission ka don ha spoken HYPHEN tutorial DOT org SLASH NMEICT HYPHEN Intro. |
09:26 | Ia kane ka script la pynkylla sha ka Ktien khasi da I Khrawpyrkhat Wanshong Khublei shibun ba phi peit. |