0% found this document useful (0 votes)
32 views40 pages

Java Practicals 2.0

notes

Uploaded by

gakher999
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
32 views40 pages

Java Practicals 2.0

notes

Uploaded by

gakher999
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 40
[fastening sump ca om [s-|____ cele eek Sa ee using ccammen © Sars 3 wah do disptayy sum by Aa) | 3 est Phodttes using Scare a Wis WAP to Calcutrye the antay Ad Ch) | Y : IwA Po CACC mo: j4 ev@n Jodd | ee (2 : él Inge aw, | y a UN C anil InP to prink Qangert of 1-8 3S_using wosrec if [8 [uae so prink dasysoy week C. q-lo_|\ ra La hoap 40 make U fumcdon | 11 LL? ere ‘ees, ) | yo | 8 13 14 q jt 49. dis Qloy Sstwneve nein \o \s . 1 : e + ou ‘cplosy finenatc’ cay —L\_—_/_1¢_ ico murat ja_(a_), 19. | Ol sg | 12 thy | IS. ~~ ‘ {34 spd sacond of at-| 18 or | 14 | 1: A JO weodpuco, | 1ACb) | 20 east ent mcadrsiCes.| sa cey | dN Ko & scanned with OKEN Scanner (OF scanned thon camer Suk a= B85. Sut _b= \N3 a sat dy one czath} S ds sos w fa SPrcy azca*bs | Ssjikeon- oust pedro (OTHE mutsipetcorton ag osmnbered $42) SoA D sani = t= | erry & scanned with OKEN Scanner (OF scanned thon camer Prooparnre | \ la) Ouseus? java -cp /tmp/W53XFDpyxQ myclass the sum of number is:33 the multiplication of numbers is242 & scanned with OKEN Scanner (OF scanned thon camer wy, 2S pnce_2. Psec 2 8 5 wut clans Aneo of niall agp 4 « f eee mtb) fi; anes | Scawnen S$ =nean Scaonen CS uUcKemadws —J - 7 he SnexBuk ©} s sone pet & ys S pbaguinnin aQnea= Cb A)/24 “TTTT & scanned with OKEN Scanner © scanned wh OnE Scaner ® ons 3 (bd java -cp /tmp/gILGRxdL6y area enter the value of b:12 enter value of h: 6 area of triangle is: 36 ad & scanned with OKEN Scanner (OF scanned thon camer aw, a . 3 i" f ci . $s A -)) OF NnexkInt OY} ‘ a 2). hy = N-wext Int); 2 ath} | csyikem. cud graiwkon The sum og, mimnbers Sa 4% C)5 Aazo%. Suyphenn- ons 956 Saye x fa ee +4), oo & scanned with OKEN Scanner © scanned wh OnE Scaner Prodopans d CO) duspux > java -cp /tmp/BXfg9rVv2b sum =a The sum of numbers is: 33 The multiplication of numbers is;242 & scanned with OKEN Scanner © scanned wh OnE Scaner Lo = | Sydkem. asst prinalyn ce ink f= Sy Ind areas auea=(b* Alla, The ance of tdiangge iA sY4anead; y & scanned with OKEN Scanner © scanned wh OnE Scaner Proapions Ct) Output: Area of Triangle is: 25 Ze & scanned with OKEN Scanner © scanned wth onEN Scanner 2 é a S oN 4 Ye & scanned with OKEN Scanner (OF scanned thon camer Pneggamts 2 used © java -cp /tmp/ezuhwtm600 evenodd oe Ee Number is Odd & scanned with OKEN Scanner © scanned th omen Scanner gure ore prison CS a iA oyanten sac b”)s COS Ys & scanned with OKEN Scanner (OF scanned thon camer £ 20 Progamsy java -cp /tmp/ezuhwtm600 greater enter the value of a: 10 enter the value of b:24 b is greater than a & scanned with OKEN Scanner © scanned wh OnE Scaner int a bic} & scanned with OKEN Scanner « ——a0v4 alia & scanned with OKEN Scanner © sam wade aye Ppoyomg So. java -cp /tmp/7rAXJvGlHr largest enter the value of a: 90 enter the value of b: 87 enter the value ofc:170 c is largest & scanned with OKEN Scanner © scanned wth onEN Scanner asenen_S = new) Scanner Cs item ins su = S nox te Swvk C5 & scanned with OKEN Scanner onre BR nce Coxe <3)% of Aw kemn-Onnk: pasivdoan (Swreanerc at” )y |_ bueats, % & scanned with OKEN Scanner _ Cone ON )' Programs = java -cp /tmp/TYywag9eWK Days Enter a day number (0-6): 4 Thursday & scanned with OKEN Scanner © scanned wth onEN Scanner TORS PVT poarg your + 5 FPUNT PAHS OK & scanned with OKEN Scanner © scanned th OnE San “ Ogu ° java -cp /tmp/sAb3BZToRi Main Choose an operator: +, -, *, or / * * Enter first number 6 Enter second number 9 6*9 54 & scanned with OKEN Scanner © scanned wth onEN Scanner ate TE, mm Peogeeam = 8 Osi) Javea -Cp UMP) SXFX/3W/91 GEG Enter the size of the array: 7 Enter the elements of the array: 50 40 30 j 78 90 “4 56 21 The elements of the array are: j 50 40 30 78 90 56 21 & scanned with OKEN Scanner (© scanned wt onENScnner 8 | & scanned with OKEN Scanner ] ‘| | COA Spc eag te _ +4 Sok meat ( AteUng angst 3) Paibtie seas c o CRAs? “Aigo” too June monies TJs £ 0,4 Chan sector, CIs 2 $A?) te? foaCint {20 3 < names -tenapinj Ltt > a : 40,4uU,80 ¥ cpr cna’ Ys x . u ted, carton TT WGox! mans Fit MGs Er z ; a YY t PDOYLOWY £13 Co) printStudentDetailsUsingarr: Ram in section A got 45 marks Suresh in section B got 78 mark: Ramesh in section A got 83 mark: Khushi in section A got 77 mark: Riya in section B got 93 marks & scanned with OKEN Scanner o Poroguram 13 % F wu BE COON Mad wi Cah f a pole Adasic Vaid main (Abie (3 op ) mth rirsed d3a,sy fg Udy, fais ays fue CTACTE new int © Ara ty >. Moe aL IC reddit aa yid 16574 db 8 Globe ie gor Unk jeapj

You might also like