"nyu has istered in th Department of Poss ofS Lanka under No QD /24/News/2018 © Wipe Newspapers Ld
(© 32 pages
(013 chapters
© sstinages
HO)
eee 633Q%G0
——
lea egnmesindena tone Copan AR eredEosy6ude
sm» opige®
© bo Sysacated Q800.
Bag S828 ME6.
eomsadsted G8a noms
emwi80 080 esis om SB0S
Som8 GmNES ous IO
26 emme ga. 088 eomae
‘em 800 eboee m8 ee
seves cag, Babs Coes
ehes qbdnaeet em
Bee edze o8.
ISBN - 978-955 1008-512
208 eens
2018 ee
Bind qacio susasig
28x Gon cf
ete esses
28st extinvene adm Ch
comibeebY qoaiese ec,
268, OB8e! BDacies,
2228 58 an casig am
9901 eBhind ere 89 sree 89D CE
des, 2Bs608 ort
a 182 Goin 1s) EBD
eobed Betas Ba0d BEE aois
Bast geese acm of
a
ieee
med 02, pegBDe eed ens
gua 08 gam oem 68S
2s Spdedotel 6826 ease
Bet 9800 acm Ch
Facebook.com splustoy twitter.com)
easyguide book BWM eosyeuidebook FEA essysuice bookwiRsdo
HOES egroi8e md
2S
p20 088 89 Stores
S008 cost clerdenist
GB como aqm Rosas
G88 cso) emecs OO ad
exfnd, a¢ 2028 O18 econ
@ Ba acm s8ece w9618, &-
Ore. abd Boca wre OLD
262 cnest ox gad DOs
209 oom ofinsesa emo 6
a1 genm orind gedm. &
edd (md um om gee
the qin quod Be Gad
28 39 oxind goad em
BEE oS cored Bed.cee O18 esoasea
Sis QeeCdA we ESCO
2
cme temic) 38
) ca emmog, 191 2 edb ecadtct Das eon3
qe8Sm00 225 8e—m:8:08 (Sun Microrytems) #29209 €0.
ods! Rises me cobs Boda wi—s0, ge qlesE=ve
cad emiosties (onclecom) 682089 gush O23. dens}
cob» Beda BOB20C9 awe Sxamo BEECS 5) eo9
qaBecss (javacom) emBed O2zeC!O 25 02 HS. 01
(Se) 02 dB BBeqretGet9 BO IDK - va Development Kit)
eee mesied, e8ed got Beam agHld SOs eciadecs 2018
Stig Ge 20 Be) Begst me HO> 10 (lava SE 10) =
OWES se <8 ood
208 82 ge-md movin eam ost emess ¢o03
C099 Eom Soavions wos mowed ce8oOR.
JAVA+YOU,
- DOWNLOAD
TODAY!
=
SB: :6k=
i
g
Java
© 008 820m q18 HTML extn ome EO vid> qICO
190 BE BYE. 280 28 88 BANCO EBoneinsto © git
62 AgslecIO em0 oom BReled edd Dab nde Cos
Bardem noBa ws. e86s ero HTML B8eca ove20
eo enn 288 830s 26 cule emanS 208 wader
GLO eB der Hier 200 HO adxIDd cds DEE,
© 9m gous 288 QOD Stsree B59 B&e abdCo
(Gervles) emect edeed® (ISP - Java Server Pages) BLresa
8680 ir goede Hrd exrg9 09 OYE. BIBOD OxIses
ooecst ogsidm Beds 288 sbob nom 288 edodB Se
exlmd gedst ends o8ecs} ed Cec obd B29 acat-
nD 0c eond mestSet Bads acu ens dos 088 B60
iB emcee 8983 m5 o¢ ocs en! obs} ems wei
e820 exmBa. o8D) sures 20m e08 G200 ewr8. 0d
(Shopping Cars) @=ic2 =Oecrt (Online Catalogs) OS
BSG oce29 Storac me wHOss eGsi0 203 BQ
gato SBQDESt (database) ge9.Gct cal CH BEDE BO
Saiee e208.
© BBO eurecttid (Word processors), SogOBO (Spreadshos),
e8c ice (email client) 20 3B ouiBet (GD Games) cont
eEoSs oGSs BOA mOH BFAd Bar {HOO i>
Beedd eo00 eax axind BED
© Send gonBE em BBE (PDA) como © gede! eos
2249 (applications) GBOOe eB) BBOCa Haw eargy oD
1D. RO) DBS 9a geod G89 qUBoriekd wDBOD
eons 90 S2Kx at eciaed HE eceng o8 aco
229 ovles HD) HDs edd wrw108,
eed! gated thts 380da mud eary 20m me wid
010 Bees 586, Cons 80 98) esB5G 0 BBOrmd 8.0
38080 SO) QBeda ww ew OD wYS He? 9¢ 2x9
Bean doGse Qeeda woud oc cicemsiess Hira,
SO Qdeda mand Gaxto> wm made
HD) BOA wx carp oom Nadas GDS Buds
Bos83 abate cbeind.
aaa
seve ont tere) |
18a0g
Beg extn BBS
* dio) Beedaed 2 Sage ger exo (source codes) B=)
castes} javasidedatent oo afin ade 8 D908, 85>
QBS BGn epg edelD C82 toed OOaoemst
(Notepad++, Texipad, gEdi) out Bode 883 (adams!
Eclipse om} NetBeans) em erp Om Ye.
© geiogd ©8 Berg eosin eon (source codet) Bace® #8)
eee 82De=1 (Java portable bytecode) cs ogssOe aor
(class) 800 288d eset 889 e034 (class) eedcodziest
Om afe od das ne exinsd qd.9 edziest mm.
203900 08 gag vies} BBDemID ees mesiOm oma
BgNSS. e8 eODELS exe OF Gn, CHD NEW Beds Co
DwEoD odBesk BOSC UDK compiler) ecw oess03.
exined? "avac’ oce qdOsiest ea8
1 obed cis00 class dcldodsies! Om Gm Bd em ee
Bato BADEN! HS (SS sashes (bytecode binary
application) 05033 3BD0mID BBDE qidBonies! OB, 82
exe eons od enEvo o8eng® ofOSax ém Gasiom
RE om, eDdeif qOUOS. 20 Bx o28 ABOeRIO
2808 quBentust em cade 8680 Bedeoas gone SBe-
a eozien! cat oxioBe exivabextd (IRE - Java Runtime
Environment) 652, d9D:86s eae eo aca quGexivss
ond Om® edeng® wfoSant Om od Gaxiom mode
nye. dal os} e8emg® [40800 wesem oc IRE Bosdd
Bedm dies, Omx® edemg® of08020 00 wOem IRE eo
ode guideokd me mBc.
4
© 688 a20cn15 qidBentest 6m owdst zclasZ O8¢ om
Snginsd 20m 05 1B qemdad anders get goa.o
Bce0, 6a emedziont dads BbBOE €:8 (VM Java Viral
Machine) e603 50 B88 (Java VM) D8 OOndn OBS.
999 chs Sheed O:Bs! NOAODD Dedec. oa0 Balodies
e8ong® Sfo8s Ben, Mud By Bed eBens® EfOBe
880 c8dd Gasid exo eeng® of OE (CAME.
enebk, eB8cxt..) do od Gadoe 8 96 a6.
Hibs deOo®
Om0 Some 22ad503 Gado (0x00 (hanlvar) eo
Sxeamoe (software) Sac TerCerf9 (platform) 29 ocs
EHDA. OBege=rtdd Extedid, mod Sa God, Eosit
20 ome BB COS deers, edoawwars Teo
en8® srBeOnle ap seridoda8e CmQOGS! ork Bed.
dows Bade Ged my. doer KeqgG. chor deere
03 oS Seadted eorideoadEst 086. Oo gems or
Bedar HEB Yoweri em Gark¥ 08. sO deid
e0i® dm emod ogo.
hd. Oboe FBS VM)
© Sos queBesdest oerm8s guider (API - application
Programming interlace) - 28 859 mien ein Grgeano Como
S0D¢38, 088) Blo emd Sed, cab» aed On qyelond!
oredlsd om 60:8.
Sito ends
880 2039 age dos O[Ond0eh GES eq BED SiO?
extlades oud CBesi S08. dd: ebetta,
« Java Standard Edition JavaSE)- Sos e028 ALVES
859 ce Blog G15 NSE 98x} Gosia On O10 mde
a8 erdrens Opadoss Shores me |x. GUI Programming
(Graphic User Interface), Inpat © output, Network, XML, Cobra,
applets, Java Beans, Security 20 Database aunts Beqte,
‘© Java Micro Edition JavaME) - Qo GSreied comaedat -
269 ee 989¢ Cm on m8 ed geexegrSs Conde
go Bogb Be8. 08 conan am dons on ciao
Dok IME SEs ere q.lBeriucle oo8a0 203.
‘© Java Enterprise Editon (JavaEE) - qaintchca om eoB@ss0
cub» qm QBeCd BES2 ondet omg. BESO hvaEE
eae 08, extatinos 9 a8axi0 Gariom Om O1u9-
ast 2086s Sborac ne 90.
Se M0VCe aysiecib SSe
thd: QQedvest enim ends emih G500 Gh¢ Sedia
Odednasd goes mo. do Sxiodld esomg’® odase
BBO GWdD en!d OO Om RE aml edu! BOK om ae20¢ RE EBe, dows 40D) ©
8 9889 (IDE) eas} coe
Bx089 eng oo mticatee =
wd m8 0800s Bede ame au
8 e@19 Gad ABH om eax) SBA,
028d 26,
DK) SedHD VBoemed 88g) om BAS. es
99 agsieci® acon oS
Gente aco
Peek (java.comlenidownload/index.jsp) ©
CHD Bd BO ost oF
(02 joa)
© cea eno68 www.oracle.com/echnetwork/java/javase/dow
egir8 oSbedee
Java
loadvindex.himl 29 288 q&820 BBs dibs BOeedoo BO
Ok 25 OBS goast 2808. (03 de) QOad
288 goa! ¢15 Java Platform UDK) 89/82 asin ede a8
Download ® 2024 2m Ost me was. 000 Boia 20m
28 ox8 oosnkel Soma} Accept Lease Agreements Bec
2€ 292. 089 Java SE Development Kit 8u91 cata me BBO
{aS ago Ca 09 mB iB BDecweso BO
285) endl ne eSosined qui Beam esong®
pe~dex® 49 ém easton oxi o>
Be gas. 089 ends mBd Omak Ost eciD oD.
J OEd 05 Om DAE SEs nd be guidedid B59
i oom 89 m8¢ aystost
8d guicleoid com mn ece
20k egetest C20 CemG Program
Java 98 ombdOb ox
OPadvas ome GarskOm adn exe
stm guleee
sfoclO 26 c
129 Bee, €8 ex Down!
2d, 6 aden! oS Be
‘22kd) oom, Eclipse IDE for Java Developers =
eo gus e80 Bd eBd east cx
os oan gas mE
mm oBoesment on8:
5) co Simca 008 900
ict Seon Stes bea ae
eo wes
2 oyreisid 0m W289
20) WRdDOeE w1DBS BBs C: 989 es gEden! edad
@28d 23 0 Eclipse Gd 08d om Re BAG ent
iD 2d om BES. qt CB 75 Eclipseexe OBE
19 290 ©9 giDS. ©BB0 workspace Launcher (DUslelodted
eked Om Cxw8. C8 Boas Workspace oxi
Browse 2034 09 DEs 26 sO) Bd ect BaEasyGuide
Oren hove Project i XO Newman vB o
Eee es
oe oe @
ea :
Pees |
senior |
besten Adriaan pal
=
Ore mecsionenomecm: fie |
Otees poet speci
Otsetett Rmenty et 8037 ss
(© workspace Sava Ecipse
Eat Source Redan Search Project fan Window
@ doaProet
pene 3 Pet
|G. Open Projectile Gina
ee caw |
ue aHeSNAW BE ttetce
ul See cus goo
Aontaion > |
= Sree. > Ah RES Lier 05-181
© Sowa congas OF Sewcefoier aa *4
cu 18 a Wong Set
I
@ Folter
Loe ie he aa
ances obm BBenm a8 809 e280 emks fo ga mya. Begyeh Saas Pariganaka, Wijeya Pariganaka, Pariganskal23
ibs Cd ed 00m am boxe 600 qoaxh BS Seeiss om gelba wian
209 SIDE BOS sport. C60 Java - Eclipse qxtBonterd
Dzte0} om Dosw 68. 2 Welcomen® 2,9 em B10 Ge.
gaSs) OOeonsd end B52 BBs €8 File + New - lave
Project Guin CO oD ays. e880 New lava Project 3B
Exfob! om Boum 208. 086 418 Project name sein @@Sed
GD) NOAH ewos empedstd om gem cBo Dont OBd
RE Be. gx Finish Bef Oo BES me ga. (02 dice)
sled 8d e808
QoIoRD File > New - Class asin wdim oor aget alex
08d Oaet ca aD wae. ies) @®BD New Java Class
(BO si00 slerd) 8 Bsteo! om Boro 08. 6 qi Name
ostn gited Sed 08d em wee Bee DEA Ca, Soest
18 OK 808i Co SEs me aga. ve)
Obed hbo sient 08d Os wEstaind BOS Ch oD
Bo ics gn mcg Bead.
© Sood 08¢ Ome meet e18 809 qddw me ested o=-
BS. pessNOEd oni cerindest ani 08 BO qx80
cme ae. qoe2 D8 slead Bd dam men 815 ems
equ gexin® eck mn,
© Sloxt n8d oom De ece 88m eqast exxcled oD
29 50m ecm god Sd ast emonSa was. o86% Oe0
8 Bed met 2909 28 m0 96 (-) CRE MED DE HID.
eed mycin® DO eg Om EO BBs GAD.
© obs RE Boom oct mbm» dm if (9c), loop (Ge) XS
BOBO (keyword) sled CBEEC D8 eee euks emus,
288 8B8CO aD SIDE BOR siewd oBd me0c0
6
eed dx! mBd co sod Ste8et ogh ba cD og
O80 0 EOD C1083. 28 oBd em OB CBs e18 Project
Explorer (eget cxicidacist) Oxtens Com exreudd
ben8 a9 aden MASK eciCOt em Ne qrS default package
Gecido esis) gE eoS0E, (5 015 OBE BE Onewss
Public class prol { yd - cm exto emdd ogo svemsind
Bede mH. Sood 08d end que enin Bade o88 GO
enia emdd ecm ge GOs gee.
ho) gvadaus Ge
hdd 2p, qulad cxele wre2ds a,Oxt exo Gam BO e868
qaton @cB gued208 =, 8¢ aw BBed aRK oaks gQOad
Se €0) obmet emmme ane. (08 Hie)
Public class HyPro(
public static void main (string args{]){
System.out print ("Wijeya Priganaka *);
}
)
© 088 Se euEs a» qdust edéa sex o8d Cons
oslo nome Re® Beast’. e¢018, gol OG ow wad OS
edo ed8 ga8st GBo 29 das, 88 oxin advert coy
0: edBed Seam publicclass MyPro( m8 oxi oes OBS
MyPro 58 class Sd Om Hem» 08. £8 MyProae sexet
Bd Cen 588. 288 extn edfed gored ewe Bd0-
sad ({) Bou 20 08 Class dom8 acs qui» 6ea8,
© 098 o¢01S eter! @16 public static void main Sting args)Datproine 22
3
2 nbs es ef si
ie Tene veld oat (String or
Sete pie HD
a
IX peters inasee Bj ncumnce Geom HE
No comatest dpa
‘Dayerion 12
2 pbc class RB
BaP public static void min (String Sre2(IK
4 System O08 prtme ues temo bp
i}
iretiens inetoe (3 Omlowien Deon
cermin Myo ve Appar] C\rogram esse 0 Snow
jee Priganaka o
,
20 oxtln ome BBAED 0050 Domed BExo go>
De e218 Ody CAB, 285 «16 String oxtomB S qad 80d
gros ect CB fo gas. e88 ena adBed qoumedt
eae Oosns Bom 858 QVal sate void main ease end
B09 cred.
© 288 get OG ecBodt e168 Systemoutprint(Wijeys Priga
taka"); cen @Gst Wieya Prigmaka atin eSqne enbst
98029 Dog C88. O58 caED O,Osdneds emda! BO-
Bd ca ecsiesd 289 etBoaS, Coes G9 ogee eB0G0
da 80 ends Boece! eoaibm BO gare onde Cf am2e9
ac ("") Re B82 gas. 288 edermed extds aS Sch
care) cHeeisl () 88 exBed gem Oe BO ¢uio» BD.
© 288 qdasned dem 8 exe Odos (}) H8e5 Class Sens
© public sate void main aston goer Bove 08,
Bed exin CDe8st qed lava- Eclipse BotobS bon9
Es 7S Rin 0x Os BES ne Ms. OBS Bxie05
20n8 cobs 0:6 Console 58 Sxteds Om ge SORT
Boulos ey cceni8, 0)
CO8OM BE Pens voto
SEs edad me eno Gas 9030 2d 0 mG god oF
edBo8. Cott emo ov Seat eBOg0 md oyS80 gad
B® cma GBedD od oxi Ga wae.
public class MyPro{
public static void main (string args(1) (
System. out-printin(*Wijeya") ;
System.out .printin ("Pariganaka*);
System.out print ("Magazine");
Diyreion
2 pblic cles wero #
peeliestatic vo adn (string or)
Srecnoue printing Perigo),
Speen prime( oe
i i
2 pubic class typro f |
3° public static void main (string Orgs) |
< Syren. printing Soe Dp
A Tioysten. cst orave-Pagatine"):
on © mets teinen Seo
|
)
)
€88 3 8:5 em 4 8:8 edBECR print coke 26-900 printin
38 exis cat Seartod oxf eras! eg Beta!
gEQUO one edEad omg Bs a ers. 088 oetO,S ed
Bock Ob print ate Cae qieies! a4 ORD ve OE
ad oem eae Bo gq m8 808, @89 exin Genciom
202 BD Wijeya,Pariganaka, Magazine zk ee8B8, (16 S109)
Bees Ea, 869
12 Coin mrs:052 coor Deed mBon 258, omid
Esiebios get Gatos exvedD gadt ove o880 a
2880 wrDan 208. B60 oslo oag8es eings Sem BO
mimGne 92 5d nar B90 qdan oxi emodd med-
oO 900 oF Be wD. a8 asioust BBaqd One moO
OS Gaeake sesstd Oasd eee 68 BOD Da mE.
SdrnE aessd onl 9G ovend ou! eve Bound ons
25 98 o¢s dest 2d om mB,
© 2S odBas! egw moestd Cark9S 08 odBad akGoas
aie 98 e¢as (i) eats gs. 28 //Parganaka S908.
298 2 Parigmaka oxo Soames eco Saniom omred. 8
@ie> 00m Samad ebm enim emOadd 20¢ meeai0
emai ed Goo os a miSe mre. cum qisiedm oxlo omr-
Ot emiOnrO Om RE Bax, BOB mc drome md ag BO,
meee daxt eca mB omde Gaxtem omd Seam
ganeds qDeBIO 8d om mye. 7 =)
Je MyPro {
atic void main (string arge{]) {
system.out .printin ("Pariganaka");tasyouide
2 public class moro f
bot public stetic veld main (String argal])(
: Syston. out printin( “Parigarska")3
5 3pstemcook pein (Ragazine”)3
3
//yatem.out .print ("Magazine") ;
i
}
288 0820 dost ece quted wad 8 edBed 8
285 esto 23068, o® Be Magurine 98 emsde BEQdss
esd c& (B89 e=rmm@. (10 cya) ext edBam ened
20% €8 eraxdsd meest ems a80 ex md Om aE. int
8 (St the integer to 8 ¢x&o x8 ext emde B8en dc-
sins, 08 Settheintegerto$ cxin Bees cos ocd 98> ee.
208 Boad Sasivs 800 quiSgn mBo geod m8
09 eu Bade® orns Rees oaks 1m. 08 em aC
ast 8 cbbedea
@080AE wre adm ermda
Sad (variables) enOes BOcze m8 oSoeam wre
G]O) vwsee eros ws8on 208. e88ah¢ Coal Obst o-
Soamed mB mOmia Snead a8 me gf emondt
e208 25 B90 2o9m, deel obst md oxi GO emda
RE gas alo 09) Bd 96>, HD eDod BES en! ead
dg Em esr OBE ems mE ODD.
e0Su8¢ dom cure quia
206d Oost enensies emdd eqns O88, 6S exm-
Bs e8eds,
int Paiganaka;
285 B6e3 a6 int cxten e809 OBE (datatype) O98. 0863
28828¢ om NE qiae mdm quia Dos en ea0e g-
Ores Boece mq CHB. 696 Pariganaka eco eto 1S
emoe 288 cOSz8¢ ConG 98. 08 aqe 08 no
ewk@o yeon.
8
a0)" public static void main (String argal]){
98 CREO Og 94 CIE"! oar) RESO em gaddw BE
ape. gulogh neestd om dest 8580 mm CNG HED
me 98 CRE enke BNE. e8c oi, oA9D Swe geID>
218 onto sem edsame adele. (11 dea)
JE
Set the integer to 6
”
int ine;
699 Set the integer 0 8 xi meSsH0 east oct cOB. e8
ermndsd 208s Ref m */ CIE QDs OxE Ome
oeinet Gen mie m2. .
208aad 98 850
28828¢ m8 adm £9 eicBo ga BiG OeiMOB, Eno
68 90S ecfs guled 088 ematedB Baded cos edo
ods, 682 e€ects.
9 08528d dan nes endo ne guest end8H. 00mm
Be mB cob® Rd HcaO 2558,
se acdnss oxi cbns ecgetd oni nda me ommfia.
dowd goes m8 of8a8¢ ComG 860 enk gdeIm30 ont
aesta® oaks w19,
© CBs oem 088 exmdd egasd gad Bd 90 emxmiSa
83. 68 Se myst 000d BD GO ends qulabilerss
underscore) capes ecko one.
9 08828¢ ened gin eat CO o¢=r BO 220%, &, 1H,
eo nea g mbm me comme. Code 28538¢ doe moat
245950: 98edd mare! COs BOER EE Em BID‘System beeprintlngeesult);
Dim, If, Do, For, Loop, Next, class, While 8 O0m% eifim BE
ema.
BOE e8608¢ m8 am Cynde Buast eon offs.
Pariganaka_Magazine
PariganakaMagazine
Pariganaka123
(280) 08d wlan 889
28828d tant 2Ed Bak quin Daw, B89 yoaass
med mizieniy arin Boca adulext oD: 08d 885,
2802 OB¢ Boas Bend esedia.
980)08¢ | eeengo | gain ediee
byte eit 7-28 G5 127
short Tet "32768 65 37167 |
int 32bit “Bt BD
Tong aie “28 BO 2-1
oat 32 “BI BO 2-1
double abit “28 8d
Boolean Ti | BGs goss
char 16-bit qc oot ecxne
Cost S803
wim me O10.
sing Benoa mo | and, oni aosne
19 288 8900 ¢x10» 918 ef) 08d qz08s$ byte, shor, nt, ong
0 O03 GE c.dm ceict GOO» B50 een aie om
12.08 GO e88 AD) OBE earn wad 2d oc eOEAEC
28 (8 Baim C2) Es ommym. OgeO (eon 1 float os
double ©) O8¢ ne gUei ads OOO 42° Sado DOE>
Be oe.
© 8s} char 80) 08d Cos} os} and 090) 8580 eb8a8E
em BkiGre60 BE HD sng CD OBE Om wxbem Od aR
oui gcaa® ool goo: asec eats mS of828d e1aBS
15. 086 Boolean ed: O8¢ Gem8 oom ne vides! 8
srieiael aos on! guns oni amenel cold oS Bac
ecenst cont oe
4 208s8¢ 21989 cen 285: 08d em eniie 89 gdas
dorm20 e1eoEa8 e802 08d Om mom BES com 4.
Re. oO excBGerd Be gated qoarm00 cesen oD
WBoein Somecd ae aOal N12 em ece 280) 08d
ens omlcs oB208. deel qOan HoMOCD OOs BOIS
east Bane 260) 08d 2Bxt 2008 wom Beem wren
diondan dO Sans Gf eoosOCE Gasclém eDm e000
88 288. coud aney com Oedvert Baie @BD: 08S
east OGe} me ga DOgdins sqm) BD) 080) 08d oust
eopbemel, gas arte 99 emed. 080 OOndvedt ecie
(overllow) B20. 08 Se 080) 0880e Gerese ew Cabal
enedn mba odi® oom BEE ocd eGa8d exer efD
28d quae 8680 com gas.
2evwas oBo
20828 mBim mde qonds DLAI 9d 9189 Bia ov-
2 GlOD OONOSD Em Garxiée 20 dgsiar (01 jo3)
Public class Prot {
Public static void main(String args{]){
int a;
int bj
int result;
as;
b= 10;
result = a + by
system.out print in (result) ;
result = result +1;
System.out.printin result);
d
)
© 208 34.5, ed85e a6 inta;/intb; intrest; exon esmoded
8633 ab oo result Oce int eO8adC Qast and m6 BoB,
eed Cin of) O8¢ Comat eDGaBd Boast emer BO
9002 98 65) 8D e098 edBlc sOust emmnd DS eo-
2 Ove! 8580, ODD. bed DH even eO8a8d Beast
C8 eq BS e00cadde oP CSenSsS eds B50 ac
em8 CRE () urE. CHOdead eCs 088 HOadwest
3,4,5, oo edBDc 8 int eD8a8d am, oS evend Bon
Bd int a,b esl; eee ee Ga mm. e88 mom m.Oad
int ext ake qndaxe.
9 280 2advers ne OG edeod qiBa~5; cain 882i
18 68028¢ 229 5. cm qos GAO CB, £88 ws OS
edBed 718 b= 10,2019 8B2 b mE eOSa8¢ 8nd 10 om
902 FAO OB, O88 DOndwers gd OH edBed SH
result-a'b; ain O29 0m b eO8x8d aga eens so
9‘System beeprintlngeesult);
Dim, If, Do, For, Loop, Next, class, While 8 O0m% eifim BE
ema.
BOE e8608¢ m8 am Cynde Buast eon offs.
Pariganaka_Magazine
PariganakaMagazine
Pariganaka123
(280) 08d wlan 889
28828d tant 2Ed Bak quin Daw, B89 yoaass
med mizieniy arin Boca adulext oD: 08d 885,
2802 OB¢ Boas Bend esedia.
980)08¢ | eeengo | gain ediee
byte eit 7-28 G5 127
short Tet "32768 65 37167 |
int 32bit “Bt BD
Tong aie “28 BO 2-1
oat 32 “BI BO 2-1
double abit “28 8d
Boolean Ti | BGs goss
char 16-bit qc oot ecxne
Cost S803
wim me O10.
sing Benoa mo | and, oni aosne
19 288 8900 ¢x10» 918 ef) 08d qz08s$ byte, shor, nt, ong
0 O03 GE c.dm ceict GOO» B50 een aie om
12.08 GO e88 AD) OBE earn wad 2d oc eOEAEC
28 (8 Baim C2) Es ommym. OgeO (eon 1 float os
double ©) O8¢ ne gUei ads OOO 42° Sado DOE>
Be oe.
© 8s} char 80) 08d Cos} os} and 090) 8580 eb8a8E
em BkiGre60 BE HD sng CD OBE Om wxbem Od aR
oui gcaa® ool goo: asec eats mS of828d e1aBS
15. 086 Boolean ed: O8¢ Gem8 oom ne vides! 8
srieiael aos on! guns oni amenel cold oS Bac
ecenst cont oe
4 208s8¢ 21989 cen 285: 08d em eniie 89 gdas
dorm20 e1eoEa8 e802 08d Om mom BES com 4.
Re. oO excBGerd Be gated qoarm00 cesen oD
WBoein Somecd ae aOal N12 em ece 280) 08d
ens omlcs oB208. deel qOan HoMOCD OOs BOIS
east Bane 260) 08d 2Bxt 2008 wom Beem wren
diondan dO Sans Gf eoosOCE Gasclém eDm e000
88 288. coud aney com Oedvert Baie @BD: 08S
east OGe} me ga DOgdins sqm) BD) 080) 08d oust
eopbemel, gas arte 99 emed. 080 OOndvedt ecie
(overllow) B20. 08 Se 080) 0880e Gerese ew Cabal
enedn mba odi® oom BEE ocd eGa8d exer efD
28d quae 8680 com gas.
2evwas oBo
20828 mBim mde qonds DLAI 9d 9189 Bia ov-
2 GlOD OONOSD Em Garxiée 20 dgsiar (01 jo3)
Public class Prot {
Public static void main(String args{]){
int a;
int bj
int result;
as;
b= 10;
result = a + by
system.out print in (result) ;
result = result +1;
System.out.printin result);
d
)
© 208 34.5, ed85e a6 inta;/intb; intrest; exon esmoded
8633 ab oo result Oce int eO8adC Qast and m6 BoB,
eed Cin of) O8¢ Comat eDGaBd Boast emer BO
9002 98 65) 8D e098 edBlc sOust emmnd DS eo-
2 Ove! 8580, ODD. bed DH even eO8a8d Beast
C8 eq BS e00cadde oP CSenSsS eds B50 ac
em8 CRE () urE. CHOdead eCs 088 HOadwest
3,4,5, oo edBDc 8 int eD8a8d am, oS evend Bon
Bd int a,b esl; eee ee Ga mm. e88 mom m.Oad
int ext ake qndaxe.
9 280 2advers ne OG edeod qiBa~5; cain 882i
18 68028¢ 229 5. cm qos GAO CB, £88 ws OS
edBed 718 b= 10,2019 8B2 b mE eOSa8¢ 8nd 10 om
902 FAO OB, O88 DOndwers gd OH edBed SH
result-a'b; ain O29 0m b eO8x8d aga eens so
9-
eng om0, 88 qos real 98 e05u8d O9 RED GRE
28.
6.288 20 9:5 edBort g16 Systemoutprintn (esul); ©@24
result m® eO6a8¢ 6m QE q@Gacw b eO6aad e¢m, e8-
ens m 839 ne 50 Clem Gos euHIO. nd. CoD
e888 8826 ece 15 arin BaO nd eouids,
© 088 co 8:8 od Bod qyG result= result +1; oe oss xs.
Oe GBs} result m8 eBS28¢ om Ne GS gned, Inf OQ
B08. ©8 qamdad e88E Ome c0Saa¢ eos RE oS
qoond, Smo adnds Ong B50, of 50, O10 S60
em cao me sim.
#088 domoeret O15 oelBocd quS System out printrss;
ato 885} mia reslt 98 od68d Om Ne 18 G03
8d ad eost0B, const ess O18 ovBed qu5 reult= result
41; ao ecto emde OB rent 8 od8dC em Re GS
900 Is toy md mB Os COBY GEad ece 16 G28.
(2 0)
COSa8d RE ERT DAL) Ed EDin SSO
e88a8d RE geain® a eR Od me mS BD co
e0> 59 helloArayll] cin O82
helloAmay qret CoS 1 1S CCH Oo A099 208. &
aM! 28 mB cand e8SE qBOR0 e083.
© 08 qsaweudt sodd S003 N¢ [] g2a> 08220 cam
quaad eam get tan 98 O60x0 dad obese wba
Bdeind ged, 289 98 go OS edBe Gn qucted e-
Opbes qed Om qHdE BOGDs. F amd O88 a8 S8S=D
erst qalostost 189 get cen8 oF C8Gd CAL 809.
08 e270 088 78 at 9:8 exEo Gaxi0m ede 69 hello
Galo @B0p0 282. 288 aOpba exia comm gaedd
(cclipse) sicxed = ne Bao go8st qy6 Run ADsi om HET
30 Gansi8e 20 agedost 68 aBOE0 da qm axind Be-
22. (01 eo)
ideo quod caD oS cat
1. GDOuAE OmD0 190 BOO
quot dest RED quis MAE BE ERE E> get em RE CoD
e209 dBm ad eH. qdax BP efor met em NE CoD
20a Beam cio cd e00a8d Onn 2600 0m oxtnd
BO0D. e882 68 cxin ca om guled dep Obood 285s
Bd das 28508, ayddot Otoed eb8a8d eat ge os
{RUD Bf» 088s 8689 exmmS 298. e868 onto BBs
89 ebsied ono qads q18 exmadoda,¥
Sol pele ee ia ea crertag 108
FS seth wi ain (tring re
; ‘har{] belloneray = (hy et
‘ System einer
char(] bellonrray = { ‘hy 'e!, 111, ‘24,
String hellostring = new string(helloarray) ;
Systen.out.printin( hellostring );
9 088 ce8 eds nek aE qu21d008 gic oo ead
20, 89 hello. asin qune 25 BoB. 088 GiB eqis eves
Be) Soaziont hellosting am mBst ond emdig eO28C
em e890 met om g¢ HE gain ours) BOB03,
© ast OS edBs OGxt 68 helloSting 8 oOSaBd em e22
20 B03. o® 490 goa exio Ovex! helloAmy OB Get
G2 R¢ hello. axien8 Oct ot Gadi am oOME C85) aS
Beam qumrdadt heloSting 068d em gE 08 HOnce
63 danas eco 085) 95 a8 qamaias @BeaHd 23 oo
BRE 02 Gee)
2ad acim ocins 880
e86e8d tam 78 eR yee ores OHS sexist
Aengtt) 8 269 (method) 2 ebm» 203, «88 e828 o>
wiBao dig CSM quads qoOdIO Od OHO og OOD
q20> qi8 oct gonane mucin.
String a = "Pariganaka*;
int Jen = a.tength();
System.out.printin( *Sering Length ie : "+ len};
9 098 ce8 edBout aan mst String ecto Dood e6Ks
8d essed eset 2g G8. ¢ cq Parigmaka cui gig? 23
B00. e018 ovBs Ba» eden o6 75 anc oD O16
8803, b AP e080 eco aceind ONO Jength eos
gales Seastest eqs end C08, 68 e808 om O83
AD® c06a8d CemS m6 qd OGD O16 Qoad ece CAD
©B. guiog© 00 len 8 qetOc (integer) OSoed oB62BE
‘
public static vold main (string args(1)(
3 ‘String a= "Pastas
3 Systen-outsprintin(s);
5 ‘Systen_out-printin(s. toLowerCase());
5 RE 68 gains 080) Bd C188.
© 208 918 aot OS otBs OBxt gBOuD edstext £8 len
298 e002 em. (03 G13) E88 String Length is : autnd
giieuss 28 888d om Ne mH goo qORObe een.
"Sting Length is" +len oces oni Gin» Sa.eae gaa 28 len
elm Seis} Cnt BBQd Coes cH oxinay EeED. o
2839 anc oem len 8 ercg e8528¢ 00 oD
C2: oxtent mB0 en€st0 e2OR0 aceindg HOOD, decor
quo eno nomedt ges 8 ex€a ob exincst
Baad ad 22 oye. sierd SB qin e@nt9 slot con®
qbekoo so BIO wr AB Beind 208. 8 qo Soret enon
Bad Ome qrnndand gest Hm Oe andes Sed (object)
Bbere6e BE Be.
Ades ue aides Deigd ended BBeddO Omnis Ben Bo-
Bo, 289 Gerad ends Ades om Siow! Ons mE C8
loud 6908 game ended ISRO edsiess dows O-
Bis, CB, Da6, OS cmmBeB. 08 eds demB eon
eee qBRO, 208, B68 aarka qos mis. Ader ae sors
TORRENS 88 Ca)
T public class og f
‘String tne
ies
String 6223
EE etd ato
Fett tt ter
ov el sei
ic Bog
ra
dq
em 0x 89 ebast 850 m8 mS Bag adec! 8 sex OBO
god 028. densi ect oot adored mBSGOd eoae edD
30 qo gae. cond eOn8 edad emned. ee adecs?
qiO2e, 800, 869 amnks sovtent ome Bad 205.
Bd) ded Cae Ede
(8 Gibs Emde O(n Baste, 08 nicsd Be8, 0820 808.
$2Sgoe Bed. coe SD) dood 2am oun gumbo o®-
ods, 088 18 ai cA myoodalort o8D2 O=m0 O02
0:8 cand 882 o8e esin’.
class slead 258 391
{dag01"
[ee06)"
}
60> exlo Gan castonte sled oSd enst ge 89 ae
88, ext GBS aces cad sex! 08d east co mee
Bcgd enka eowect guste public class MyPro ec
2os0B. 2868 MyPro og scx CenS M88. chO> OB
ere ne gS e82 ces sic! om OBEst sex! Ons.
prin
ic class py €
tai peor string coe)
Spoken oat-petvtln( heme chosen is °° ¢ name D5
Una
wenaetsee
»
Baba int getagee
Syston. oveprintla("Puppy's age 45 °°# pepeytends
return poppieee)
Jubtic static void main(string {12°6°)
popey ayhupey a ew puppy “Bue Ns
eh setnge(
syrupy aetna i0:8 088s clot dast ge mod dood wad me oe.
20 o 29 08 CBE slo! em aden! Beason! 08 sex!
a
public class MyPro{
Public static void main(String args{]){
i
)
eSet thos sox 08d Oost Re HSE ead oad ew
0s! nici cast AdBn00 $08. dove os} lox! om
m8 oxin emdne® gBoLc0sHe Bs gq ma. OSE
2035 «16 O8Gs sled em aed qOas qenst stead end
dsino ge0D, 68 qmxead cod ad m8 sox oat
enn extn mover! guo8. (01 dec)
Public class Dog (
String breed;
int age;
String color;
Public void barking() {
}
public void hungry) (
}
public void sleeping() {
|
public Dog() {
}
1
9 089 ocia eowest veg ev€e ne qedsiont edGst
sox 028. 08 98 Dog cxin8, 088 eS, get OG co
48:8 od Ban qisfoss Dog alert m0 east D830 ea
B8802. 68 q188q0 BBE treed, age 20 color o0. 802
010 sows} 2¢ wim ebm ebSddes,
=e
PEAR YEN ©
9 088 5 0:5 eBod 7 OS edBod ©» 9:8 edBed 8
285 exio Ex: Sedsiost sloxd Om ne cOa0 Stores
8080s. 288 extn sone 11 9H eda Ben Sedatent
ss8d9S05 (constructor) Omat BUOrexs BOSOB. 0S
BeidQsOs mm adslest OB302C9 aE Gne GRO
80808.
s# BES calf oda ove DOsODES od Gaxtom addy
Od cop gals qx od Ba ge 30 (BS, 088 Bd ow
cost gatos 918 enim 9B ed8 odd BBs gRE. (02 453)
08863 dood dass ge eOEa8d an e808 ends siBm
B02 BEARS qOeaids cd axind gedD.
public class Puppy {
int puppyage;
public Puppy (String name) (
‘Systen.out printin ("Wane chosen is
}
Public void setage( int age )(
Puppyage = age;
) :
public int getage( {
Syatem.out.printIn("Puppy's age is :* + puppyage ):
return puppyage;
}
Public static void main(String {lazgs) {
Puppy myPuppy = new Puppy( "Bunty" );
myPuppy. setage (5);
‘myPuppy.getage( );
System.out .printin(*Variable Value :* +
‘yPurpy-puppyage
}EasyGuide
8088 oxin nowert Hee ouBodt Puppy cm OBS Sood
om end 2d 808, 088 og 15 odEs Gan Sedzies} puppy
Ageam mBsi Om q88g0 Om ea80 eqns 088 gat
218 eds Gx» Seated Puppy om mBet mekignOb ond
Bberess B680a. Sader a8 4.8 edbs Go Seaziest
name sto eno SS0=.
0088 6 OS ox€s 8G Puppy ooBied age e(S8G2 CD
gma dy (08. ¢ ade mS 7 OS exBousiage 5° oO.
SaBd comS qos puppyAge nt @18830 2m abo Qe BS
BoB. 006 159 O15 eves ne Sean aaiigdot om =>
Seasiess puppyAge Qe 1H oo e220 SWS.
(9.200 nerd md qpe S8edso do cod ad Bedetest
208 mB 14 O18 evade, e& qxmdecs clexd n=O
med Beda a(S8s geod public static void main(String
arg) eco Gay cam o8ct slo 2m coors. C68 my
Puppy ain anBat ext qdnd csmged Sdawded ee 88
me 18 OBDedeo
Qvebobes mBan mdz goad
CBE, Scere monte ava anda scott or
itor) eae o1em8. 088 Beato cares const
ext eds) weimne B68, sumeiganciomd Doe 2189, a9.
B00 omted8 ends wifes obsin md 288 OS
Ogg 95 BS ema. o8e Hb) BEx! HOBOS eneD
20 mbm» adm ensbobe Obo ous Belos eves,
eq S8, Set Gootobed
eras gum oBaed? qdas obs B80 cases 850 ages
002 evento gan ©4DSS aida onds GOES Boad-
bel (arithmetic operator) 200 Leek 68 aaclo eOS28¢
80 ont BSD enesls adn Hoo mm ad Bo
10g Beg: osind BOD,
hfs OB2t Coes!d 2d com sDEACAD N.Ondns RED
BEO odin nbS Saka mS cnynd ox 8890 Edom. dod
60 BG Sodveass exlo CEs ans. 28 oxi Gam gr
mise qDeaIO 2d BS Sup ody BBs om ex gS
ene noem edsans aisio. 088 Sd emmecss aS
extn omdd 28 od€ oce Efe age. (0! oye)
public class mypro (
public static void main (String{] args) {
int result = 1+ 2;
system.out.printin(" + 2= "+ result);
int original_xesult = result;
result = result - 1;
Syetem.out .printin(original_result +" - 1
=" + result);
16
eddd do 02880 14 O18 edBs Bar G08, C88 3 OS
edBed Bed= Puppy aaitgsob e= 26 78 name auto
20m Bunty m8 Sdoed m8 mae sdq cred. 6 emo
@Bedad em Garsiom oOm BD 4S evs OGst name
axtenB qos eQ0e0 adm OBet Name chosen is | 2550,
aRGeos Bunty ax Go 29 8 28.
008 grandad 288 m8 15 8 suBo Ex Seartecd
Dee om Qeimws gine S6803. 088 mS 17 OS eda
Ec Boartonkg pupryAge ne Beds Oes eBn0 85008,
dae 9o0y2 B60 es ados ember, exis SOND QEO
e683 ext nd eter sled om ne MS oSa8C dad ext
cemst 80m £0 mB adm gumds qdeald ad 8803.
089 oda aOwe Guisiém ode 89 Name chosen s:Bunty
125 Puppy’s age is Sain esto 17 OB euBs Gor
28m SiS Variable Value 5 cm oQ9H0% cede eves,
05 8:8 Bge8 a8 03 Ged) .
original_result = result;
result = result * 2;
syatem-out printin(original_: ao toeda
=" 4 kesult) ;
original_result = result;
result = result / 2;
system,out .printin(criginal_result + * / 2
ate result);
original_gesult - result;
result = result + 8;
syaten.cut .printin(original_result + * + 8
ste result);
original_esult = result;
result = result ¥ 7;
syatem.out .printin (original
= + result);
)
)
© 088 get 1H edBodk result ae Set int (qesOsb) Ob-
wed e0808¢ tad amd mo Ged. eOsie ¢ mgm 1 +2
2D Gos COEZ ENS Bd HD. 68H 4 OH edEo Ex» Hed-
siosd BERS e020 om ond C0880, 089 edBod System
cutprinin ce enim emon Gan Bedciens eBDED 29 ca
BOO BEEDB. 8O qOear mB 1+2= asin eodB ems
ened ci end Cag () RE Ear a8 Hen Os Coc Bso)
28080 Om odd C908. J qMO C8 cme? BB Oeina
ult +“oS PIX
B08xh omomeds Bo afSoust 8 result soko 8G result
e88u8¢ 65 98035 BOB. ¢ qn! e86% 88 eO8a8¢ E>
RE 88830 418 gam 3 coin qfOE0 c8.
9 088 18 5 1S od8s O82 gE 833 orginal reulom >-
Sci e08a8d onal end mig 108. Cebalo F qad e802
8d eo 088 result OBC donS qind gH Gos cae
208,
9.088 6 018 otkBs Gan Sedsiost renlt eO8c8¢ dons
15} g8 85908, eO808¢ cme gid mH qasSS IS oh
3¢ giles 8 rent - 1 2:8 qaarud oxha Gasind 3:52.
0 exia® is gD BO cree BB ad O8OBSO BOS «ser
omi68508, 00 Sen COS of SiOx ow! 1s Can Sed
et! moe 89 result = result 1 eee endn @Ba gas. 050
result- | cxke OG ret @O628¢ Comet 153 9 208. 099-
BO Gorm CRED 08 CBS renlt COBaBE 2 GS
aUOsi 22 gRSeest cream BEqd O3 ge OSH 602. 89
wens Stee ene.© result eO8aR¢ bemB gan 2a} 003.
9228 gS 7 OS eubs Ban qysdot Od 42259 ca
CR 2808. F aN! EGF orignal reall xk Gor oS 202
089 eb6add Cem8 «Od 418 3 am goa decBHS q20z0
288, 89 q2a00 can O00 NE a8 -1- axing CocEE
QDOue 08. cosete Go gfSoust rent GSE em 2g
GOO G18 Goo 20m 2 aulox GOO" 208, 8 ENO eS
QBOuO em od credsiest 3-1 =2asin3.
90e@0 § 8 eves SBxt myOo Ode result eOSzSC &-
eS GO GeO 902, origina result OBA Om eODO
RO 0g C108. 0B qraadeced D,Oadue Bet £608 G-
Golo 088. 268 9 8 exBosst result ©O8AA¢ 65 2 ot
OO 088.12 OS oda Gon queierd renult 840d Ox 2-34
O8RE08, 288 418 18 OS ove Bx Seduied osteSs}
o0 985e rest eO8aR¢ Y= RE cab» 85808. F eno
28 eqm BBaD ERE (%) mE 968,
odio ate sam qpeesre
ban 808 #9 48 808 oe, eafe en 0,0 862 an 08D
BBS One ania consi ge p.m adulens m8 280 Bode
eddies ewig Be gas. 668 odin nbs incidm 54 am
ee ene8ove Sedsoost cot
eee | aoetctd | Seam aes eons oecie
aaagede neg B69 oor! S89 Gar
i oO | daa Bus zuled 8 28 oy
4 “sii ] 08 Odoal me ents aaa.
2 ane qatenctot ofa abe
[35 [4s } sees pam easzcces.
08 Bam enBBodg onto gel sux grads gDeaIO
36 O88 BGs evn quod NSedND easaDe adsto.
(2 S63)
public class mypro {
public static void main (string[] args) {
int i= 40;
int j = 80;
int k= 2;
intl =i+4/
System.out.printin(*value of L :" + i);
int m= (+3) /k:
System.out.printin(*value of M:* + ml;
)
)
9088 34 2 5 am eveoct BENE ij ow kun OS
imoboed e0tah¢ quad and ac Be8, dor SBe0ES
40,80 26 2 am qae q190 96 G10.
(9 286 18 6 2:5 ovBow? | em 8st o08u8d Cos ome
26868. Ene oss ad qed it+j/kan o@o stead,
29 Gin Bedsiest i eDSaAE BonG m8 gad j O6uOE
con8 m8 qos eng 2¢ 80 credo OLIV. k eBdz8¢ O-
en8 m8 qooast cate Baa. ¢ me 889 60 &. cont
7Myer {
public Static wold main (Stringt] ares) (
int t= 98,
int 3 = 0;
int ko 2s
els y res
Systeme printing"sstoe oF <4 1)5
ines @ oda
Spatemoytprbntln("volus of Hi" + m)y
See 8
209 eladess Gants ob 89 yBam00 gO j eO528¢
cenS a6 ena k e0u8d den8 a1 eoous eaf® Bax3
@0G. 6 end ESF BEad ecu 40 oat Ged. omd 68 BB-
200 1 888d Cems 8 Gos ema 28, 089 ces ao-
23} 6890 W0 a, Const HO,6E BE Qs Dn 6) cd on BGO
6x1 D2 an Sind oust ge quae eae C0 eases
queibe gules 8 OS edBod oS Ofa0a. o8SF eam 859
G63 ne 29 Se 2 (1+) eos Sins ae eab> Ged.
e288 e888 Samiém odsieni qdamedte. 289 86nd
ee 60 088.
Secend eostote
e0828¢ egasi ne mB ends) on 00 BOS eS exer
Oa) end ang Sen BGs cag® moda ends Sodend
‘ScetObe! (relational operators) exe oyest. ober seq 2c
CB wGm Birmad esssion dy cui gd SENG
CARED 288 mada ended BuobOid mOor 2G. e882
3@ CAS Emme aw 8 @arc 88 gar B88) 9Exf GB goed 90 099
go Bae 88 Game B58 weg ©88 mexine mim mdB.
8 Gab e88t 10 > 10 eee exl80G, Bad Credsies ees
eons. 88 66 G18 6.dm09 0) (RE OF OB eID
Bare seBe 80 oxida.
>= Ome ent tom en} a0 gma 858) - 98s oh
Q0a9 8D) BRO MH goo Bare esi BO eo AD Smo
BEE eee 080 cuotins wil» 258. € ed o86E 10>~
10 extn Can got BO BEgd cession! ams eces.
© <=(@ 0: ent wire oi 39 emo 889) - GE 78 2020
00: 698 a8 qos RE eo) BOs ew A gma B59 oem
288 euesios Ba 58.
290 1eE8 arden mB aden quences @Oe1O a6 OBS
BGe coms dp Neds! EAD qe90, (0H Gos)
8
+5 8:8 eda Bar Seavien’ am b e8Sa8dOc oS G90
public static void main (string arga(]) {
int a = 10
int b = 20;
System.out.printin(*a == b=" + (a == b) };
System.out.printin(*a I= b=" + (a t= b) );
system.out.printin(a > b=" + (a> b) );
system.out.printin(ta < b=" + (a = a=" + (b >= a) )
System.out .printin("b <= a=" 4 (b =asln earn 9O828¢ oq NE a8 qos eq Cals)
Rdg C108. 28 agsiectacOGa8¢ dm RE GB 4Ds0 OB)
b e65a8¢ tm RE MB ens Be emt abn eb asin.
Gat qodd62 > CRG CBee amen BD Bem aged
Boney cules BEARD L8G. 6B ww b e6aAd e¢> DE
8 Goo eqs 2820 Hod m0 BERS eco csaien false
S8iNB, Cond e882 Bac on) e820 ent eOg8 ofa)
dm aEdaen b eb6a8¢ acm ne MS 40s ee HOD
Bok BBad ece true cui qBOn0 enels o® qaaieasts
10 &y8 edBix, Gasedom 088. (04 <0)
dss eekO
gna pandecst cO8a8¢ g¢ G15 gas eoa8 ebm OSE
G18 exdizo 20¢ Sedend SesbOtd som emd coals
Bdsind BODD. ona qsledales ¢ eOQeOst Ga: BedD
exo nonD8.
public class mypro {
Public static void main (string{] args) (
Systen.out.printin(10 == 10);
Systen.out.printin(10 != 20);
Systen.out.printin(10 > 10);
Syeten.out.printin(50 < 50);
Systen.out.printin(10 >= 10);
System.out.printin(50 <= 50);
}
1
8 0882 3 O15 oxEod? 10 am 10 c82 gos qG coats
dQ cr88. 2 ond 28 BERS codsiet tne cas. ded
e018 ebBe# 10 ew 20 quding avi ofales ened.
0g toms &EeS BENS oem te cei O90 ened.
© 088 1B 4 8:8 edBeu 10.9 08 10 Bace axle eSate»
1308, bem 8% 28 goo oc eer aEst BERS ecm
Crodstes false ceIT8. 7 0.5 ote? 10 om 10 Bac ons
881 o0} 20GB Slate dn Be 7 8 edBs0 ane
BBQs coasted ine ees. (05 5155)
ecrded sostiots
mbfin idm ends ecxind SeotiOte (logical operators)
2 public class mere (
DoT public static void main (String{] ass) {
3 Systenoutsprinthn(38 == 28);
S
‘
?
:
:
we)
a
wil nog castest abo BEadiOC0 eed 2O800-
ad Gand noBe aqma. ¢ gn e882 adm ogo
0S e08s8¢ eae a8: qubinmd costes istentg
mibin qmriech, 209 eciéad Suetiobe BBA¢ Seiad
beets.
9 &&- eee GB coro o¢os ow (and) om Guxeos
Salen 25 Bcuind 28s oar) aen8, eBt o88 BBad
Tne oce eB8n0 ebsied ecoe m8 gave ene ones
bok oo,
ell- 2¢2e 18 gave egas ons (01) cm Garedss obctes
BC SCHInD 68s eg D108. OB acon qB GEV BCoD-
3 erst em coup Bo 88 BERs ece True avin e128,
e121 (not) aul gma 8820 082 exe send. ¢
a8 qRSeast HH et cxosadd ems €O m8, BEQd ec
False cx CR880dt, giBeast q18 Gara gaDs oD oe
True oak Gaon C&LEOd e8s eax 1008.
e8ed ecrdad euetiotid ebm ade 19 orm 00840
30 &B eR ove geben oxi GOOD COD qOdrens
ecg adato.
Public class mypro {
public static void main(string args{]) (
int a= 1;
int b= 27
System.out .printIn (truecetrue) ;
System.out.printin(false && true):
Out Print in((ae1) && (2 == 1));
out printin(a == 1 || 2 t= 1);
System.out.printin(true && a == 1);
System.out.printin(false && al=b) ;
system.out.printin(true || a == 1h;
systen.out.printin( != 0 && 2 == 1);
systen.out.printin(! true)
systen.out.printin(! false]
systen.out.printin(! (true && false));
systen.out.printia(! (a == 1 6&0 I= 1);
systen.out.printin(! (10 == 2 || b == 10));
© System.out-printin(! (1 != 10 || a == 4));
}
}
© 098 3 5 wo 4 O18 adBock a am b ece eb6abd
eqast end md 6:0 goo eqn 190 2d BoB. 5 8
edBa Ref && GootOh dm mOm em Ged. 66 o¢o-
Bako qiB geno gain qusters True eces. € a0 O88 COR
19EasyGuide
8 go eqD2 oo2 AEs 28s Gursieo 08D 60 OB
ec ees cwedstenig True axind.
#089 6 15 edBodk & qi gave eqenss aos eOstext
cask 088, 08 Sen && SebOt Ce SdH) C3 eg GOD
pO 09 Fale cxin3, 086 7 9:8 ods n€ outs oboe
guarded emiO em Gen G1. O88 RK GuetOh end OF
cBsba eb0a8d 6 ge 78 qe 10 erm 8D exO> GO.
€ gaP de ems gmvscS, tend && EEetTE 209 RE
8st 918 gavaed Bedetest 2 sxind | astm s82m 308.
éc quo: gased a8s AE Seated em Gatead
2888 False cat @20z9 22 oce cB oc
9 088 8 OS ox€s Santen ebclenk 08 quneseo8s.
Cons 088 && SuctOt om ebQ09 mm 2d austes |
Geet0t 658, O88 58 oo ow (ag Ee mA GEE OCDE
203 00. 08 Bes SEQd eee True aalin C128. 08 OOD
228% ent pmmaadd Obeid ems Br | CoatON Om wofins
ems) q(8 Bes GB26 ece The als qBOye 208.
#086 418 9 O18 atBod? && BootOt ond ocoBst mB
gana eg mies edad gamdaSed exe qo. OF 58
8o gamma Tie ees ox mE Be» C8 qDekcwd eis gb-
Bovis ees meen 2g Os MS gmaed go> queers
1088a8¢ CoS 1S os 1D adam O03, O24 es O8st
BEad ocs Tre cain Bdge enet. 286 10, 1 ew 12 a0
eeB0cq emi Eun Beasionte e@edters
#86 13 O18 © Cock ! SEsbO8 Om wba end ara.
062 I Te coin exids gS Ben BBQs oe False out
C128. 14 8:8 euBod mid Bar esters £09 B{O quand
08. O88 | False ocs oni0 om Ga» qi Bao Tre ook
28080 9 acs C088. 088 edelds eqente ! BoatOs
69 wo8an adm Cfef 9 gaisd egos. Const 15 18
edBou? abd gave agm | auetab &m elms od GB
quae event. memvess gous 918 os garnet’
qm c0-cas SuscloaBe | euebab C008 dOe2028, 000-
31 2estOl Om 280 KK oui | ons om SoatOE wnfna
em geno Boand® 20 €8 Sarmtaos of aquind
Bem. € ER! 088 dod ne GiB The A& False cai
od O18 cbbedes
bem && mins GesoDd ess mA gars80d ave
Begs ec False anim cdved. Cansh ged | euebOb Om
2236) 28 Se» 2882 Bad ace creates! The oxi’.
© 288 a6 16 1S axed emidy Senste edzlest; of
ede. 288 17 O18 edBaxy Codd arise 20; O88 |
auetot om abo maa emo Seazient | eeetot o=8.
€ eomdeat | eectot Om mBm emi 18 8 edBad
ent G2) B28, o88 onto coon Gasiea 28m 50
Bags exlo euBlc GEmc True om! False on$ oe 82d
event,
288 ocstnd Suatate! wif» mdm BO Gean BERGE
sibBn BB 28st ads: nO Cod oa Osim BBQ
aGee} 28828¢ (Booleanvanables) Re OBED sdEIDOE BEO-
5. coo qdabn exin cones? oved op cdm BER
ABest eB8a8¢ Re oSE> a5 S08.
int a= 10;
int b = 20;
boolean resulti = bea 6 bear
boolean result2 = bea 66 bea;
boolean result} = ba 6& boa;
boolean resulté = bea & b>a;
systen.out.printin(
systen.out.printin(
systen.out.printin(result3);
system. out print In (results) ;
© 288 ceQ eu ecm Ref exbrs quariadacwd eco
int Used e86c8¢ ocas ead ad Be8. 3 8 exBos?
beaks ba ece, Gecend Sostotd aw ecrtad aeet-
Died 08:3 wbcher adm cam gavancd que BERS 088)
soctes resutl em mss ead m0 q8 AGast eO8abd
Res,
© e8 qamda0e 45 on 6 am ovWe Gusto 008, 268
sibGind obsien 5 C3: wulim Bg CBedEst rel,
resuld eo results cm AGaxt eB828¢0C OE ened. 088
Seen ot ond beacons
e86s8¢ mad Re m8 goa ef0g0 ened.
aaidend o@és mia ada exmds
COE 2 slome wanes cod See ove suo
saeiBead ecrtst (conditional logic) so8a0 €8. 2@-
Bd eneddied, o¢y cam emtedBas end aeiOust
ered obi m0 Ac», 00 CO BES CO Tox, C8
ape c8si NOsdmD 98620 Gaston BExks. o88
ad sess wboo ndD Mae eedd meds ww
89 eOnd eB. 450 nef avidend code mbm ve
78 90 Boas, ¢ ow Bxlas oboe,
20
2¢9 089 asibes' God eas 90 coed
68 motu 9989 micitbo
28 ago. esta Ga gq ong odo gamBs ends ond
ad6b dm em e083, 086 g(8 if om ace B8ed eat
26st Seis 08d ne ans. e882 Odes! ae cd ecsiest
neiBest O08. nag Odnst gg 29 nulfedd om ams oP
8a ge mbast ew} abs Boast end 90 Cd equind
geom,A pubic class tere (
2e lpublic static void main (String{]
int mumber = ay
Oy
it(oxBexs em)
‘
Beast om ons m8 Ba gy mic;
i
288 exia gunied gm0 eno Bam quads gbeatd
0 O88 BGs ons cabo 78 edo sdwm qdzane a
oat.
Public class mypro {
public static void main(String args{]) {
int Number =
af (Number == 5)(
Syetem.out .print ("Number is equal to 5°);
)
)
}
9 98 D000 Qet 9S axed Number am o8s int
qela Oboeast eO0u8d ead cod md Bed. 28 eves
ERE 00 5m Goad Mae B68. 288 wad HS evsed
7 if Bosse 8833 Number ©08a8d demS que conten
308. hb) Ref if Bons mdm adm 8 oS Sooo
Goda, Ont ebm CRABS (-) em, EOD CRE OC
ABs (==) gueds Sodend SeetOd tens const ae
as.
© 288 000 O18 edBod m8 Bdrm 00 Bdan (|) coast
Gx quied § 8 msibect dm cos m8 Bs ge mito8.
Sono t m8 aeidest em cos 0 5 OH edBs Gerdoo8
Number is equal o 5 oxi Bded exet08,
(a C89 Bxbest cas oon 90 do mstiandy quae 38
Bost eriusie q0080 eicidde
8 ecm oxin GBa 9 seg onto gumBs ome «edd.
It(esDeei =)
‘
puGesi em eos me 86 gq mito;
¥
alse
BEBGH om gros wt 8s oa ait:
ij .
289 exis q3mBa2 gm exis Bom quae gbea!
Bd @BO BBs cxn cab mB eeln com go2eme
nisin, 088 B¢ eisjesst qxit> 16 oni DH sues! od
BBs aia. (01 6s)
public class mypro {
public static void main(string arge(){
int umber = 10;
Af (Munber == 5){
System.out print ("Number is equal
to 5");
eiee{
System.our.printin(*Wunber equals a number
other than’ 5")
‘
}
2 298 got O18 edBed Number am 58st int gcio Doe
mbmeadt e80a8d ens end a0 Se8. eB% ¢ ged 10
2m qnag g1Q0 B6 Se,
0 009 8H ecBed Seam if ©Gxt Number 88d bemS
900 Balas 208. £8 gnc 50 én m8 te edBed oS
ext emde ©Gc} Number is equal oS axis Boed oust.
dened 88% Number eO628¢ O0m8 enc 50 quads ax
Bat 7 OB auBed Bede else oxins Garson 088. 652
Faded a8 8 OH exBs Sars] Number equals anumber
other than 5 cxf Bde @@ eBsi08, (02 503)
¢9 C80 DaiBest dad quass®
20d aeiBex! 283) Looe ofcte S88
8B} 2008 Suibeed OBcle, S620 gan 98 ext if exio
0 gan guasWcd elseif extn mB Be gas. 28 cox,
exis quis von gse03, 088 peed oeg maiBext
em quan a8, eco. aniBest ong, ofi8 oulBest om
game 98, a2} 8 salBedt One Gort Onows! Bet Z
609 melee} ofan ne wo. 08 Bade guanine ed
exmed q18 cle emda Gantend 38 BqIs cd) 8.
if (@o8Bex8 09)
(
polled de ons 8 Sa ge mia
1
cheif@ otBect ex)
‘
2 molest om con 28 0 ga mc
)
ekeif@ seiBaxt om)
{
Jaulded Os eas 8 Bs ae inte
}
ven
{
pulled Gade qaas o8 Ba ga ate
)
aai
Soa ts
een
esnips
Colas o
ope qatta qed 088 qamBad eQd emg O,000-
BOS, e86a8d tae qh CHEBOCO QVED mIBHO cad
fo w8 od 0a emer Bed. (02 Ss)
public class mypro {
public static void main(string args (}){
int marke = 67;
ig(marks >= 75)
{
‘System.out .printin(*A") ;
t
se if marks >= 65)
{
systen.out .printin("B*);
}
else if (marks >= 50)
{
System.out printin(*C*);
)
else if (marks >= 35)
ie
System.out .printin(*8*);
)
eu
(
Systen-out .printin("P*
}
}
}
© 88 aot OS oxo cag BOs oes 67 cxte marks
230 o08a8¢ em ebm me 2d BoA. O82 BE 395 S
cued mG if exios 862} Marks eO8528¢ Gen8 qe 75
2.0 8:6 ext ean om! 0848 ebcias 2c 303. ea tod
0 000 on€at m8 extn edBa Gatos Aasin Bed
eusio8.
© 228 mB vegclciferto exe 32:5 ex8ed Ga Bed.
08 G6 marks >= 65 om maiBuct oSates G58 ©Ses Marks
20828¢ ComS mB gas 650 Of OD ot E8r= om} oD;
xi otihwn 20 ACB. 03 Cod! B® B avin Bed eexte8.
2 qaanisd 86x 2008 Gn qG elseif Brae OG
Matks 28528¢ Con 018 CRG ooaien BdBat SS CRG
200288c2 ace GEA% qOEO 268. OE 8 meiBext o-
ei ens Qoemd Oa G9 eed G8 goad suibuct
22
cBale og Sesion am. o8 Ser BEnd cledstost aos
uiBust 890 ened 8G. oc) c0 O.Dsduent BERT
eee ceases! B avin’. oOe000 ac8wed marks 8-
Gad 62 Red 67 Seca BE cde ME g18 OS.
46009319 ene S69
bed! eq cAm aeBest BEss foo! oiaiwy md Be,
Bred eas, qaasmds CERe Bd com HOndSD Gust
09 8090 if aeiBand ecods Oo oba elstifrSos me mS
met 6 e600 e0DE (statement) Oxaed Em meer
gQeest enio Ga OOnden Gasslom me wn. 086 Gator
ques God ABD D8 ee0DeT0 Sm (switch statement) =
Sm Bde quod.
288 ABD HeddesO c= ems ents Bde we omg ext
wpaiBs ooo gsees.
witch (G96)
{
case "goa!
default
ane Bade geas 58 82 ga mba,
break; ‘
}
© 098 a8 switchasienS gmose eqmn e06a8d east C8)
22 ane. Cemd oP eb8add cast ge m8 gous 28a 2o-
09 wlaker SESS qOas las m8, switch axind gfFeat
gars oce Co fe goles SO8TuAd Cond HOB, BET
08 gavas Bowes ne COs aae.
enlo coves oc15 edged coc Odwas (1) e080
2d quted dod deddestd em qo B00 egos. c68
case axiom goes, ca qld G8 mm, oOS2Bd O20
ApEd esis me 22 goss CALs BRE CO qae switch
25 2 Cages e85a8¢ 220 qed Hosw mE ga gD
Do gas. e862 C9 ovBe qoeet adsiest Bal ems ()
cReeisl emnd, e¢S9 () CREE. &8 qmrcounteare eco
0g 26, 09 e5€ oxBs RE 08 goo aos m8 Bo ga mtio
sOas! Re GQs e86F ent mind em, ed@ Boand
mobs Bead pO¢ C8 equind GedD, 28% 28 e18 ede
28 qdemed? Sd em cae ests Gao.3 public class nyPro (
207 pubic staie va mtn string) or)
(defeats Systenscutsprintin( "inva te month."
y
Fpstencucarintin( mater of coe = mms
£088 q18 breaks csin ma» aduios cascades Gg eka
emrde qdast 8803. ober FBx8 F008 case ew break oc
(Osi on oo} aia! cals m(Bs. Hed e¢y cam BIE
eo} Bade qaas o® Bs gq ite default: cain coed
eats ane.
288 odo gasBad qa ext Bon qaris q008i0)
36 O89 Ee ons (sb) @(8 exis edna gorams
defo. (04 diB2)
public class mypro(
public static void main(stringt) args) {
int month = 67
String monthstring:
switch (month) {
case 1: monthString = "January";
break;
case 2: monthString = "February"
break;
case 3: monthstring = "March";
bres
default: monthString = "Invalid month";
break;
}
System. out .print in (monthstring) :
)
)
#280 orto ne 3 O18 odBedk Month am m8xs quits
e00u8¢ Cast aod md mB. 08 edBeute ¢ e892 o>
9054 MRE 26 B90, 086 4 2S oder monthsirng 22
D8ei wo Dived o88s8¢ Cast amen Sed.
$098 switch dod08H Om qu20 Bd quled 5 OS
evBeste. 28% switch AeOOees0 em eq: month e&8a8¢
Om E8aro 35 O18 aot 288 8 Bag Case REE OF
le adsies’ month o88a8¢ 29 NE MS qos8. qaD
6 OB edBec case | ees Staten Sdzte=t, month @OGa8~
em Re mon 1 B0d¢ Sax. 2 ded m8 89 gest oS
oxin em GG: monthSting eOS28¢ em EO January
dbae giRe BOR C1e®. eBeCH Case CORD gEED Bar
88m 08D ends Case exinad gfSedo CARE evi 59
ome edBod ca oni me mS
$298 18 Case Bade? 28 qumneuss Gasdo= 908. ¢-
ered qB defsult cui G82, month oSs8¢ em ae
1B g8 39 eo8r= 28 Imalid month eke monthString @®-
Ge8¢ 25 QEd G1 OB. 8H month eSaB¢ bo geo
GAS 35 1H qos 2 BES 280 D/OGOED Feros oD
80 February cei 68ad eee Bded eueiDa.
880 900820 C0 2¢ if exin oda» 850
Oc case Cast aded B80 210 Boas 26 0m mB. 008
HP case Boas een das HP ost OLOs HLO8Ee Be mB.
208388 qDasa08 8D switch #e0DERO om RE if exo Or
Ba» sosind Reon. of ees extn Bam qos gO
2010 ad oe BBs ona (Sb) mH oxi comm qdaams
Bdzin. e62 Ca eqm c® Sbeact elm qBcrdeate ade
cin cnr ogo DOndDS. 088 Hd creas qos
m6 oct BB eves otf Ga ae. (5 es)
public class mypro {
public static void mainistring{] args) (
int month = 2; int year = 2018; int mmbays
witch (month) ( case 1: case 3
ease 7: case 8: case 10:case 12:
punDays = 31; break;
case 4: case 6: case 9: case 11: munDays = 30; break;
case 2: if (((year % 4 == 0) 6 I (year
100 == 0)) || (year % 400 -= 0)) nunbays
29; else munDays = 26; break;
defanit: Systen.cut printin "Invalid month"):
break:
case 5
} ‘
system.out.printin ("Number of Days = *snumbays) ;
}
}
9088 3 OS edBodk Month am Bet quis eOSa8¢
ond endl 20 qua. 00 aN© Bd 1B Gas 2. $0 g8aCB
4 0:8 odGout wad 25 76 year BO guided eOo08d
Om BES 2016 GD qos Obes ECs MRE 95 S08.
© 088 5 O18 odBod e168 numDays am eO8s8¢ o> aqD2
Oe goug grad 2d quD. e888 Month eB8aSd om Ore
(25318805, year 9O888C¢ em Bac eosiBeOe, mmDays
Goo coeiBey exe oeD8. o86Z switch deddexd
Comat sem Sjecsiesi Month e85a8d Gem8 goad.
$088 wnt O18 ecBou 1357810.12 am @xa8e ero art
238 mumDays o8828¢ em QED 31 qQe BOB. E Gre 31st
gost 08m Sens, o8 exrdesat® 10 ev8eas! oR) 8
23,EasyGuide
casd0ut 3038 gdast ebm 815 eid) a70. gh 985 ebsiest
e28d08 Gras 8B, 8 Onde exsOss Crea HOO0-
Host 28 aie, a avin Ades BO e88% De Gas.
© 888 14 15 odBodR if Bivens ws ad gy. O68 Year
e0828d om Re mS Gos SUSI ee G85 m8 5ES
2 Bassas! 0g) 488 mne,809 ov wxBzoust oo
985 ems 85e am qddo> e1cBdc2 om CAB. Cod mo-
Bled qo eBdidesy asin ogo OB8OS. 0a ded BB
90 OH O8bedeo
ge mbm aden qaamda
ESE oes 2eeee cmsaete ome gotnses
e003 Ge (loop) eo8) oD. ge Cou! 8G ome
cela eroded eben 5,00 Sancees den Cxe8. os 60
im wrmd NEL moBm DE OLS Cg Oho Boas. 68) quset
204 (Fon) oe, BBC (while) ge en @ OBC dowhiled ge! ex8o9
Bom quasis o83t9 6b Sxenns B68 BEis e000 o>
Bon Som gids ©88 Beiod oo SoS.
oot gs
oni ge! Om eis adn BO 2 Garism com ons oem
B02 eros mpBe, 289 68 5d oid gd HES ge
£5 n¢ 62) a8 enin mon orto Samioad ge const
Bono os 603, o88 gu em ol® Beads cous! oe
Rs. 68 coy emis eeedta
Beg OS deo
fet (200) 82¢ em] OSaad m8) Prete ebem2®
weeting] frc8m= 902]; Es cogs eOGs8d a8]
(88S ebeng® .cxina] poES Be aq qe];
axles Ba ge 6260))
a0 oss mG oun odBs Gasctt m6 mumDiys 205a
Bd 0m Reo 29 am maNO GIRO BOB. ape Shes gD
gBo%es exve8 HE 88 if Bonzo gue Else moe
‘Berson! mumDays oOSad em NEO 28 ao mH GIO
268, ©88 O:Dacen exiPmed month od8u¢ em NE
2a, Year o8828¢ = 2€9 2018 oO 2d 1D. e@ Sen
2018 qe quads emdn aEet eS Sred good
Roo ace B8as creases! 28 axis. (05 oie3)
aot 7S edBs
Senstoe Bo ge esto
’
298 v€8 et8s ne sods Soest eons metas 8 Eom
Oc CBomBs! esi a0 eaBe0 2B, 85) eal ome.
e089 oxi nous ne de> GBs G2 emxO, Cond dy or
sreast calls gi emnod ¢ exdeasi mid Estos! om
ne GBs gas,
e820 oni gd em elas Bon guards @HAE OBS O-
o> emg OideoEas oom cabs B28. cba qnSBeOEst
ge0 ensiBe B18 HERONS. (01 5:0)
public class mypro(
public static void main(string{) arga) {
for(int ael; ac=i0; a++)
{ system.outprintin(*Count is
'
}
"eas
9 208 old ne PS OS ede? ont ge om qxids mc
Be8. O88 Inta ece ca qxtectacm MBs quiOst efO>
i
:
FERRE EEE EE
TE(poblic class nyPro &
ble static void eain(steingl] orgs) {
Gint es th a = 285 es3)
F
0
apF
ten. yt print ~count Se: = #995
ae
ay
Yate (0c 1095
BY em ceediB md com ebSs8¢ Umst ame 85803,
¢ apd est gu em Ger novionsaodSadd e238 S205
gad @0s. e888a=1 eco CaF mS Hera s86a8C &
en gustan goo oct 1 HE OY G99. Cams gas OE
aebSc8¢ con8 qnfam eed! eee edad gnc H5¢
cake ma.
£008 918 < 10 axl 8Gx5, gt bm Garton Bs ates
A06a8d Com8 ga 102 Ob) QD se! Bead eS OF
29 GaP e¢8. O58 10 ay gH c= Gases edn ees
ded m6 4008, o88 10 88980 gos eda goes Be
cafe mBs. 068 emlO Ne foreiBodd qenerad aA ar
ein SGxi gu Om ent Badedst Badd Garside 2005.
(9 088 gu 8m get Garden e8m sere: System. out pinta
(Count is:" +2); 229 ems etB=8, 888 "Countis:" azine
gious +aasin eae mS 28st, gu em Garioo eda
80 Coutis.czino q@Seus aeBSe8d 2e28 gos es52.
9088 qBart ain Ssta c8z8d conS go o(6 eo
9 Inf a7Gsh Ome 2B. seg DOSAEADC GSI Se, SeXS
oad? 2 Oneass aebOa8d Cen8 goad | xs oma
ebsied e28la. 08 gamceuss gu em 29 108 Sesto
2a, Cen nbcknabh asbSa8d dem8 qos 1085) 228 205
abst qu Comet gbet 088. 6 amd qBOED em oe cw0d-
sient | 89 10 gates m8 gexin@a. (02 Goa)
Babs 06> adae! ae Bo BBA CwdD erarde
93 Om Santen cba Badd case obo me BO credD
Bade eres. 283 tid BS BBs oon gain aS
exla 80mm gsame aoxio.
public class mypro (
public static void main(string(] arg) {
for (int a= 1; a <= 10; a-asd)
{
System.out.printin ("Count is: * + a);
7
2 public class Myero {
oP Mpc tee eka mostra) age (
*
é f
5 Syston out Printin( count Ss: + 9 |
; J ealte (eo a:
288 Qui (8 alBod gBerat2avin 8Bx3 gd Om BD
ecSsi on Gassi8m 208. d no e80 Gascidm b= £0
Boed 13579 cm oo8m eosiB, 88% 5E896 ed eo
1209 S89 gem | axin Bed eosi0B, o¢1H Od gt em
q1ReES0 Bise, Ba0d eeSiet ecod od em Gasteo odo
Be) 08 ocr 80s Garden edstesd myo. 0D Gd OBO
ine Ba used gai O18 Bosca, e8eca8 4918, 6018,
8 0:8 0 10 OB 0008 ¢ GY O90 qiRe cdsES MD.
280 e903 Cost cwodzient G8 89 ome ,802. (03 010)
228d ge
208d gd em Garis obstent, go BBs} ecm cam aot
Best Oost ans) qBmmds. 0868 08 aulest o> o>
Qdemd gE coast gOs 288. Q 8d gd dm 689 ad om
U8 Boas adwst ae gas. 08 eure mis oe cot
8 Sia. 088 dq opmjeast gab GH emvod € gd
eacts emid Bxieo! 69 ne Gbe aac.
* ‘
t
ge em get Gariom Bo gq onto
while (SBus5 =)
e8ed Q OBE ge Om mbm adm gends oe OBO
ge eng O,Daowes! ome gato» $99, 084 ons BE
88s) oRd BBQ exsiBe mH 92828D5. (04 22)
public class mypro {
public static void main(string{] args) (
int a= 1;
40.
{
System.out.printin(*Count is:
aeati;
"earEosyGude
DMpojne 3
[poblic class mero f
public strtie vold main(String{] res) {
recor <
} waite (a c= 10);
)
}
© 280 onid Re Net OS odBodR acm Dest eS28¢
ensi ond 24, 8 089 1 am gos q1Re Bd B08. 4:5 od-
Bod’ 88d gd o> Mobs emo Be8, e886 9:5 o07
0:8 edBoe esos ge donh Gamiem edn em008. o
8833 65:8 edBed 918 omiO O83 ad bm Gartoo cD
x8 H0aRk a ebBahd 38 mH qos Sided eox08,
© e882 Count is: axtin oon 8 A1Bst ey® OOumeO s
e8608¢ demS goad BEdt Counts: oxkn eoxidy cie8.
28 e+ cas (sd) qos} Countis: ca LeSa8¢ Cons
goo eoniBe ga 255.
9 gd co Santee con a8 C0ss%8 4 eO0u8d cond
gad Is Onn acy cdvtest 7 5 euBod GB emi &-
BB. 008 § OS odBed? ge Con8 maiBest om otter
Bd C8. ¢ eM 989 em Nek a eOSaid cenS goo
100.66) Bach 69 ge cemet gs 608. 060 1 BO 10 go>
18 qexka® gd = odo: qOE0 ed C288. 9 5S)
288 ©Oe0mm Sais odo erate a0 edo oe
88 oqo ge don8 auies! tm eves eDad md eo.
2 @8 one geben O(oRd ozens adetD.
public class mypro (
public static void main(string{) args) {
int a= 1;
ao
{
Systen.out.printin(*Count is
azar.
} white (a >» 20);
H
}
© e882 asiBest om cof qusied 2 o8828¢ 4058 ge
109 06: Bare 20 on} ob: DE ent ge oo Gamtoo eo
cecal. Const gd 08 o88a8¢ cen8 ens | aOst Bae
exh 6m gens 08. 8 Sen gd Om Garston edzios mD.
© Cond e282 2 a8 aiBert em O:cR NOS ge em Ox} 89-
ed Baio 068, ca.bet oot Oded Coast 8 coe GO
2 €m (i288. gu ConS aiBest bm eS ax99 om Bd,
G8 C098 m8 Garten edn emds oand Seam a5.
6. ciee
08d ge
08¢ gd bo Gaxtea edzien: 208d ge o> Sexiea
28 Bsde08a, 088 & q18 maibers cand anv) mfr
gen Gates 08, c88% naiBext om clini ndviost
gd Omd quq0b00 BEE. oa:0es Ox} OOudidss axiom
cbs moi nulfied dm ofste adm aos f a8 ast
26
"+ aby
Diaepojen
1 public class more {
per Npalic static wold mein String} =
Sac. tetiet 1 age om St sao
3 Spste.c-taprintiat"val of 12" 6 8}p
é Pens
: rests)
. ,
3
Bast 2a gems 28 ge C0 g190 eOsled ayn. 28 erg
grenBie ome qatto o:6 oFe. 088 da omens <2 415
emdd € emncecst oni8 Sxfebi em ne GBs ae.
while (esBe=4 ¢=)
{
ge 02 Ref Santee Os an ont
y
(988 1 80 10 cx qm GHOn0 8690 wading O.DBID
08d gd om eax end 2d 8:82 O6x5 088 GexmsBaiDe
emotes aula 900810 ad on mn.
public class sypro (
public static void main(string[] args) {
int a= 2;
while (a <= 10)
{
System.out.printin(*Count is
teas
098 ani Badces 26s Bcind me BEBd gd 220
ope eniB5eo ese. 3s! 9g O3¢ ge om eagb ebay
80 a88R O8¢ ge em eax? B08. 0")
tedden mba: S08
3 doe exlo Santee dn 50 62) gud 8@ Dod adc
30 qdan 08 ¢ acm sale» adetor ee doOOEHD (bre-
aksutement) 623. coezi2 2® a> 80 98G09 Babes
2d eu ax® sess SATHO 0908240 (continue statement)
on sf 308
3s gs20eso
Beh deDdeutd oxtoust Gar god Surids ov8st OB
gd dos nOascsind net. o& ob Qe0} eal Een or
oda qBeaid 25 o1Se Lem 9D axl BOD qosEDE
Boston.
public clase mypro {
public static void main(string{] args) (
for(int {= 1; i <= 10;4 = 1 + 2)
(
System.out .printin(
if ae 5) {
break;}
)
i
© 288 aut 0:8 aeBodk for gd Om Ge» S68. £6 inti= 1
ace cag Seared gd com g@xddom qouk. 6 apd
peBnedk i m8 888d goo 1 a8. 88 418 veg SS
alue of i: t+ 1);om8s CRED EGO Sedsiost nailuct mB. ba i
eco C8: qiS B18 | eO8aR¢ dom8 e18 goo 10 0 26>
ROW on} ada Seamand gd Om GustOm 088. 00 a8-
Sate tele ge! On Seniesa e203 ome
I=i+1 ecm ca q8 MExt gd Om Badedes 8205
Gouioa 08 ob qu ge om Beaten ebm 80 5:3
edBa 8Bs5 1 80 10 gas geaIn® O00 Om Aye GOD
RE Bae TO.
© 288 18 6 5 aed? cate) 2d acctest i eSu8¢
e128 gna 5 ebstenke cals, 00 ded Bem 71 O15 od-
Sect gS oBed dodd8r!0 om Garciom 068, e880 28 break
deddeH0 bm 8Gst gd om Gaxtonbe mas ody cred.
2 eae ga 180 10 eetb> oust QBOH0 sdzIND ge OD
Geo Bgenc, 1 BO 5 qatdn O8essd qoast gH ad ge OD
Geden8e qdort e088. (08 102)
BeOS waddesto
sHf080 deOd00xt0 bm eli» nda castost cod Garde
3 c08e Beam eno om0od mDaa0 Dad 55 m10-
Bo Gendlem 888 eqns. C8 momEO HDs BE BUDD
A@ED OOeinl ABORD Credriest om. Eorst BO qFO00
RODS GOGO xBrErs qoEVdede eA. 08 eoYeds' oak
Bam quae qdeatd md oH agin 68D exo GoD
qorane mdsio.
public class mypro {
public static void main(string{] args) (
for(int {= 1; 4 <= 64 = 44 1)
{
if w= 3) {
continue;
}
System.out.printin(*value of 4:
}
}
© ©6888 for gd Oo soBaw 0 onl Bon eB. O88 for gt
om Gai Beasiesd 1 of 6 d gad ecwe ne Gaston eon
qpardsda. 3 9R0 Ge dm Gussie ebm BO 1 80 6 gals
8 702158 Bede e2039 BE gas. Cond 688 Gor WH
BHOSS deodextd Om Heo gO ebmd ebB. ¢ amd
508 ec€o 00x | o88a8¢ Som8 qos 3 «8 Losin nd
Beg cred. 62 cod 8 6 O15 oda nek BAOSO co03
‘Garde 3008. ¢ ¢—m0 | eO8uA¢ dem goa 3 m8 00s
Ouest Gamniabe me8ad oad ad aod Baxieo
BOBS 6 O18 adbeast 068, 28% 3 oxi Sess QHOR9
sozten} 89 got geOa0 Oa0H— evens qamrdsd
Gortee @88. (07 61S)
80 maiDAO de0d8s10 om OSC gd oD Net Saxton
90m quarda GeO mo OSS wen OwD gedIn ext
m+ 42)
(Dipejwe SAU j
2 public clas myo ( |
|
pe public seetic wold main(String)
ine var 385
sain (oar 9 8)
forest
continoes
)
Syston ut prtntin( vor of vars
“sors
BOsm qovene Bieta. oa Bor qustect 10 80 1 gaib>
18 Bag coast qutet 5 216 gems 8 ef2E0 8600.
public clase mypro (
public static void main(stringl) args) {
ant var = 10;
while (var > 01{
var = var - 1;
Af (var == 5) (
continue:
} *.
System.cut .printia(*value of var
)
i
088 onto noses aot 8:8 ex€ed? var m8 oboa8d
50 Dem gos mQe 2d Be8. 28 4 OH cubes? ce! o>
REO g.Qe 28m 00 ofite: ad Acuient 28 ebEaAC CoB
a0 0 2 08) Bace auind. 88 5 OS ed8s O6eh var
e00z8¢ ConS qos 5 <8 obales 2d Bey cree. o6 ced
B® DaCHD deddestd om Gaston ado So» gd con8
gO0n0 credstedt 5 ain genie mBOa, (10 cie2)
© gan goed aiOB0 Wedded em Gaston ady cr
808 65 goad aquo 086. dood qdos oe cdc
Sdaant BO emOd aeiHO deddextd oa Gard¥o as.
O2ind HEED. e83 exh. OHS nem, goD elo SDD
Be Osect ebad md Ba 718 oon glean exin comm
qazens aden.
8 mypro {
atic void main(String[] args) {
int var = 10;
while (var > 0){
var svar - 1;
Af (var >= 3 6G var cast ca S00 wba» emo
12. 288 prim aio Set CSE ses Emer a number
sind giSeasls, one eB oD oarg oms8 get que
om adusi ng oS acnos. cons! 7 O15 odes 8 exis
Dee prints gn GBs qriec aed gai Om CB yee
si amag® one exe aim exe 09 BBs, (02 22)
puigd nog cam eas Somwas com ex9p OSE
geno Belod me goaded 92in0 09 Dog CAD qoust BBO
GerariatOed exes S=IDo GOD. OB pO gad oe
gulg0 Om dQ CSD qacs BaBend sets Cas 06S
Bislea 29d BE GEOG CA» 2804 EOD, 0 GOURD wd
O89 agus ome GsedD esis Glam qdvane adaio.
import java.util scanner:
public clase mypro (
(public ststic void main(String args[}) {
‘Scanner "pnie = new Scanner (System.
Gat ne cendersnextInt()3DW rejoa ts
4 port java.util. scanner;
2 public class myere
‘public static void main(String sre=() (
Sten eeeber nextint (5
Systenlout.printin( Received input $8 ¢ "as
i
3
public static void main(string args{]) {
Scanner reader = new Scanner (System. in);
System.out.print ("Enter a number: ")
int n = reader.nextInt ();
if(n--1) {
System.out.print ("Yes") ;
jelee {
System.out.print ("No");
n
)
(@ OS eOBodes
e100 HQOm qomda
3 2282 eronst enum 80 membe Saned exo
eos BASS ©O828d CHas!S a6 astm 30 RED
g1Q0 126 B28, e850 2 mob em ae ows Csib2 mH 4
abe deeast eesids Seam ends) cio 2082 068.
° 1 2 oea
16 2 7 [#0 | 1en_]
gahnet do ge a:8 262330 26st Bins me qmdsoe
widm ne 1m. cesss 288s oad RE M8 caved
00909 eb ecinast age S80, mEst me qunedads
Be me.
9d cael adem gab Cas eve cso eae B09
qreb 8008 23 63 SEES 28D cain MINE BO ce
G8 BOG De HBS. SoD cad WS outa BUD Net eed
Ge Cast ober aoe! gieb ened ged gato qae Bd
B28, 288 eno aden ox) com ques SOBeaecd
guigd adm goes! ced ged ead ods C@ eon, Of
oust mene = 222 se 80 ceam BER aBeso
85008.
public class mypro (
public static void main(string() args) {
int sum = 0;
Amt{] numbers = new int [20];
for(int i=0; icio; irs)
{
numbers [iJ=i;
eum = gumsnumbers (4);
)
system.out.printin ("Count is: " + sum);
}
)
© 209 extn wdued 918 get YS edBed? numbers om
28s int toed quel dos end nd Hed. 88 get Com8
28929 oan ace CAR Seastext 10.4. 0 Bd 4B
edBeuZo sum e88a8d tm ene ad J ag 0 cm qoae
ae 29 828,Demoime 8)
1 public lars ore ¢
2Defubllc Static wold main(String] 9s) (
3 ine se = 8,
f{] notes» new Sat 8]5
Pee adres)
9 088 5 015 ed€s Gn Seastest au bm qoddn BVO.
€2 gt 0 Sesion opctet | e8028¢ CenS a8 902
0.85 10 0 Be» Oo mB onsia em® B00 B99 qd 8
los 28 gu em Gandom 083. ge em Gosi8a oom 59
7 OS edBowss mmbers get ConS esi exh eext em
eqm qoast ae ad Cww8. J GD Sep DOVE ge Om
Barciem 082i eO8s8¢ Sem8 mB goa 0d, 05 num
bers 108 238 0 OS 289210 ed eRe BIB. e€2xS 89
edt i e0608d com qi gon 1 88s} = mmbers axed
cen8 1 8:8 e88x10 ond q19e ACE. e® gimewss go
een8 00 Bade Gaxive 068.
5 288 18 8 0, edBs Gan Beastont numbers eb Cen8
0 Becs00 7B 28EH0 domB a8 euas9sim 08828¢
em 20m Ong 86900. dug mEat enin eda e8u! ox! Ox}
oad? Garsiom 268, 208 918 qoent dB Gon Beartont
sum e80a8¢ om 285 Ong md oct gist bend oct oct
e8o2100c 018 qoasied Cmab of0E2 86802.
ecdBeeutund qed
SBBeestund gab Came OBE Bose «ul 285) 2d
82) goskdnad OB a8 mot ene eure MEBs e6oria
(2c) 284 6a [ Jf] pe “now 202) SBS es
[posalfosreal:
2982 Sd emda endsno Met Emo qerdeasto Sed.
ef) O8¢ emd gRSeae! emg Diost egal ou) Sedat
et 280 ecdBeosiend qiet cast 8 wpm oxinde.
208318 Gores ends C80z0 wcin cade an quo ecas
eu! Bees 288 min ened, ono quledsles end ne
edBeestund get on8.
Amel 1] a = new int (3) (4);
© 688 int am quel Com8 gun Sloat. sam, got es
oc cd f Beam DOB. e089 ged dens CBO om
ece cae aisier [34] x08. 08 am® qed 22 RE 0
B02 qa) Goud Jes en Boel edad ww 0 BO 3 ciDr
eG 2280 wads a8a Boe evBasd SErc0 eB. C80 28
egBBeesend gob 2 Barc essexd 0 NS 8705
ania Geeed gato) eB quandad ons.
© DE Be BO cag HHd cane quabOst 289 eGEx0
wiRst0D. € and Hed oxBed Hey CRED om mEsted-
sexs [0][0] eee. ves oxBed ecex5 C6020 65 [0]
ec misled. o& quaniexs! vey odBed 268s me
sladm eo qname geo exertions 0.2. e¢o1S ete?
ge2 1 eSa0 e@esO0C 9-m axed. eeed gdos 958 qed
esd 2d oxind pedo,
Java
Demons # jE :
3 public class ro {
4S ublic static woh main(String() or) €
See IEh etrit sae Sota
serie f]fe] = as
seeks 103) = 2
Sree (le © 5
see UL =
Tie ine = eer) + mete:
Sher ines (metal(e) + ented:
Systems aprieincie
?
i}
Bgodeestend mot emel Bes coin Gas BOO
rob east eqns esi gig DE goles CoD gxledD org
gaaidis ane 85,
BWSed e-nclloqs goal co
e8 end C889 ond exin ga mda 80 CGOH0 om
Beam aim