Java/C2/Primitive-type-conversions/Khasi
From Script | Spoken-Tutorial
Time | Narration |
00:01 | Pdiang sngewbha sha ka Spoken Tutorial halor Type Conversion in Java. |
00:06 | Ha kane ka tutorial ngin pule |
00:08 | Kumno ban pynkylla ia ki data na kawei ka data type sha ka wei pat. |
00:13 | Ki ar jait ki jingpynkylla kiba khot implicit bad explicit conversion bad |
00:18 | kumno ban pynkylla ia ki strings sha ki number. |
00:23 | Na bynta kane ka tutorial ngi pyndonkam da
Ubuntu 11.10 JDK 1.6 bad Eclipse 3.7 |
00:33 | Ban bud ia kane ka tutorial phi dei ban don jingtip ia ki data types ha ka Java. |
00:38 | Lada em, na ka bynta ki tutorial ba iadei, sngewbha peit ia ka website jong ngi kumba la pyni hangne. |
00:47 | “Type conversion” ka mut ban pynkylla ia ki data na kawei data type sha kawei pat. |
00:53 | To ngin peit kumno ban leh ia kata. |
00:55 | Phai sha ka Eclipse. |
01:02 | Hangne ngi don ia ka Eclipse IDE bad ka shynrong kaba donkam ia ki code ba hadien.. |
01:07 | Nga la dep shna ka Class TypeConversion bad add ia ka main method ha ka |
01:13 | Mynta to ngin shna ia ki katto katne ki variables. |
01:19 | Int a equal to 5
float b b equal to a |
01:33 | Nga la dep shna ar tylli ki variable. u a uba dei u integer bad b u ba dei u float |
01:39 | Nga buh ia ka value jong u integer ha u float variable. |
01:43 | To ngin peit kumno ba u float variable u long mynta. |
01:48 | System.out.println(b); |
01:58 | Save ia ka file bad run ia ka |
02:07 | Ngi lah ban iohi ia u integer 5 u la kylla sha u float 5.0 |
02:13 | Ia kane ka rukom ban pynkylla la khot implicit conversion |
02:17 | Kat kum ka kyrteng, ka value ka la kylla hi ban iabiang bad ka data type |
02:24 | Mynta to ngin pynkylla ia u float sha u int, da kaba pyndonkam ka juh ka rukom |
02:30 | Weng ia u 5, float b equal to 2.5 f bad to ngin buh ia u b ha u a bad print ia ka value jong u a. |
02:50 | Save ia ka file. |
02:56 | Ngi iohi ba don ka error |
03:00 | Ka error message ka pyni “Type Mismatch: cannot convert from float to int. |
03:06 | Kane ka mut ba ka Implicit conversion ka long tang na u int sha u float ym na u float sha u int. |
03:13 | Ban pynkylla ia u float sha u int, ngi dei ban pyndonkam da ka explicit conversion. |
03:17 | To ngi peit kumno ban leh kumta |
03:23 | Ngi lah ban leh kumta da kaba pyndonkam ia u int parentheses ha shuwa u variable |
03:34 | Kane ka jingbatai ka ong ba ia u data ha ka variable b donkam ban pynkylla sha int data type bad buh ha u a’ |
03:43 | Save bad run ia ka file |
03:51 | Kumba ngi iohi, u float value u la kylla sha u int |
03:56 | Hynrei, ban iahap bad ka data type, ia ka data la pynkylla ha ka rukom kaba dei. |
04:01 | Ha ka Explicit conversion lah ban pyndonkam ban pynkylla ia u data na u int sha u float |
04:07 | To ngin pyrshang ia ka nuksa kaba hashuwa |
04:10 | int a=5; float b; b=(float)a; |
04:32 | System.out.println(b); |
04:36 | Ngi pyndonkam ia ka Explicit conversion ban pynkylla integer sha u float |
04:42 | Save ia ka file bad run ia ka |
04:51 | Ngi lah ban iohi ba u int value u la pynkylla sha u float value. |
04:58 | To ngin peit kaei kaba jia haba ngi pynkylla ia u character sha u integer |
05:06 | int a; char c equal single quote m; |
05:24 | a equal (int) c; |
05:32 | System dot out dot println(a); |
05:36 | Ngi pynkylla ia u character m sha u interger bad print ia ka value |
05:43 | To ngin save bad run ia ka |
05:53 | Kumba ngi iohi, the jingmih ka long 109 kaba dei ka ascii value jong u “m” |
05:58 | Kata ka mut, haba pynkylla ia u char sha u int, ka pynpaw ia ka ascii value |
06:03 | To ngi pyrshang ia kane da u digit |
06:06 | char c= digit 5; |
06:11 | Save ia ka bad run ia ka. |
06:18 | Kumba ngi iohi, ka jingmih ka long 53 kaba dei ka ascii value jong u character 5 |
06:24 | Kam dei ka number jong u 5. |
06:26 | Ban ioh ia u number, ngi dei ban pyndonkam da ka string bad pynkylla sha u integer |
06:31 | Mynta to ngin peit kumno ban leh kumta |
06:33 | Pynkhuid noh ia ka main function. |
06:38 | Type: |
06:40 | String sHeight kaba mut ka rynieng jong u string equal ha ki double quotes 6 |
06:58 | int h equal to explicit conversion int of sHeight bad |
07:11 | System dot out dot println(h) save ia ka file |
07:27 | Nga la shna ia ka string variable da u value jong u 6 bad ngan pyrshang ban pynkylla sha u interger, hynrei ngi iohi ba don ka error |
07:37 | bad ka error message ka pyni Cannot cast from Sting to int. |
07:42 | Kane ka mut, ban pynkylla ia ki strings, ngin ym lah ban pyndonkam da ka implicit lane explicit conversion |
07:48 | Lah ban leh da kawei pat ka rukom, To ngin pyndonkam ia ki.. |
07:58 | Weng noh ia ka int sHeight bad type Interger.parselnt sHeight; |
08:21 | Save ia ka file bad run ia ka |
08:29 | Ngi lah ban iohi ba ia ka value la lah ban pynkylla sha u integer |
08:35 | Ban leh kumta, ngi lah ban pyndonkam da ka parseInt method jong ka integer module. |
08:41 | Mynta to ngi peit kaei ka ban jia, lada don shibun ki digit kum “6543” |
08:49 | Save ia ka file bad run ia ka |
08:55 | Ngi lah ban iohi biang ba ka string kaba don ki number la lah ban pynkylla sha u integer |
09:03 | Mynta, to ngin peit kaei ka ban jia lada u string u dei u floating point number. |
09:10 | Pynkylla “6543” sha “65.43”. Te kumta ngi don u floating point number ha u string bad ngi pynkylla ia u sha u integer |
09:22 | Save ia ka file bad run ia ka. |
09:31 | Ngi lah ban iohi ba don ka error. Kane ka jia namar ba ngim lah ban pynkylla ia u string ba don floating point number sha u integer. |
09:41 | Ngi dei ban pynkylla ia u sha u float. To ngin peit kumno ban leh kumta |
09:45 | Nyngkong, u data type u dei ban long u float. |
09:51 | Kaba ar ngin pyndonkam da u Float.parseFloat. |
10:07 | Ngi pyndonkam da u parseFloat method jong ka float class ban pynkylla ia u string ba don u floating point number sha u floating point number ba shisha. |
10:18 | Save ia ka file bad run ia ka. Ngi lah ban iohi ba ka string ka ba don floating point number la lah ban pynkylla sha u floating point number. |
10:33 | Kane ka dei kumno ba ngi lah ban leh ia ka implicit bad explicit conversion bad kumno ban pynkylla strings sha ki numbers |
10:45 | Da kane ngi la poi sha ka bakut jong kane ka turorial. |
10:48 | Ha kane ka tutorial ngi la pule. Kumno ban pynkylla ia ki data type na kawei ka data type sha kawei pat |
10:54 | Kaei ka jingmut jong ka implicit bad explicit conversion |
10:57 | Bad kumno ban pynkylla ia ki strings sha ki numbers |
11:01 | Kum ka assignment na kane ka tutorial, pule shaphang Integer.toString bad Float.toString methods. |
11:07 | Bad wat kaei kaba ki lah ban leh |
11:14 | Ba tip khambun shaphang ka Spoken Tutorial project, peit ia kane ka video ha ka link harum |
11:20 | Ka batai lyngkot shaphang ka Spoken Tutorial Project |
11:23 | Lada phim don ka bandwith kaba khlain, phi lah ban download bad peit ia ka. |
11:27 | Ka Spoken tutorial project team ka pynlong ia ki workshop da kaba pyndonkam ia ki spoken tutorials. |
11:31 | Ka ai ki certificates ia kiba pass ha ka online test. |
11:34 | Ban tip kham bniah, sngewbha thoh sha contact atspoken-tutorial.org |
11:40 | Ka spoken tutorial project ka dei shibynta na ka project “Talk to a Teacher” |
11:44 | La kyrshan ia ka da ka National Mission on Education lyngba ka ICT, MHRD, Government of India |
11:50 | Kham bun ka jingtip halor kane ka mission ka don ha kane ka link. |
11:55 | Ia kane ka script la pynkylla sha ka Ktien khasi da I Khrawpyrkhat Wanshong. |