Professional Documents
Culture Documents
LUCKNOW
CC&AI,
2nd year, has completed his Advanced Java Lab report for the
my guidance.
.
fJchJ a ,J f oaeJ, - )f fi cYreJ(J~Je f!m~~
~ II WtJ~/LJ a:t cl ie n t slde .go
~ ..SeC1Dred
r{!X()Se.Jw 'fXlUl1nt
fj or-deYf
?Wec / ~ 6:J
➔ II- con be e ,tf
Ird (T u5 , N a c o.s Ck.
lfj U n ux , 6J
rn a1J p )a f/OYm , In cAi'd
7 )/ s a d u a n k ? j~ i-
ex! dt-Pn1 D){_(JXJJS e,y lo
'
_, P ~ In Is meqµI ed
.Jr
exeCUJe apple/-•
Expe{)t,',nm l .
fJ ~ ,,om -/o c[)reale at1 f)pP,PeJ d l'lnCY'l.9/-~a:Jf'Q
08
va,t1'00J dx OJJJJl'(J mefhr:dJ cy
f}p pie!- J o/emOflJ f-:Jr. aJc
even f- Aa rd.111J r11€rMJ11!rn .
061~diur;
LeaJtnlit'ei -!heIn
-,TWJ11&/o
I.I
WOJ!Mrff Cf/
Java Apple!
Jaua ?!maffXClfl)m/"fJ ,-todef.
-:1 f1M uTeCCJ 2.e di-fje.JrerJ- ~fet.geJ tt/1-tpplef
llfe qJ-de.
_, l eco-rnl"f!_ '00.J 1o cmeafe ar1 /Jpp1er t{J eu€WX!i-;
fJppJ ef iJfe C(j rJ f .
~ 1-fM CNeoie Cll.J1f/mlLe.d euem 0(/ !mp,(mJOO!AJ
tnfe~ace. me/A«I-J.
C(J) mpl ell'ff #-ls exp tJJ11'rn c>n t fJ oo. w M 6c a1fo.-- ft:i
1
on /xJJ' on
Sha({\
~g( ,_ifcRJ f)(.'18 p ('}( •
(a c.1. ~t o,,,p}f' , dtclc
I
f urw occu:xs .
expeJ1/rnen1- # 2 :·.
C cY ~e an IJ W i {J1eime of'C/
f} fYYCJ{![){Q/fJ io
demomt:JtoJe merJ- AoNlllt{J mecMn,~m-
S-=mliJ) 'oZ?_s t-
/ -f J AVA {o D e -r;
) r'() POJff) a.JJG 'G.ilJ f' f I
Im po8f f-) Cll.Ja , aw-1' eu en 1. # i
~°!!,~ -- 0 '(;If) U.s fen (Jc)( EXCl/rJ
pie. I
?u/JfJ'c
(Pu/;f.lc ~y e~ uold mwOlf.rrn ('am.s-kre/"ftvlav
o OJl(js) l
P:Y qg JO/'flfNtJ ~
!)am e f = ne o.._
abet J = he w la be l( ) ,
J ..geJ-8fu N:f.J (70 , 70, ~ o: m))
BllHon •6 = YJew BClJton (((dl'cb- He:x() ' );
6·sefBeu1,ctJ (!DO ) 10 0, go, JoJ;
( n
&J Lt&-ene.:1 uJ I rdl:llJ A- dapteJf rJ l
J. adduJIrd f!vJ
o/t:Xf) Euert e) l
pCljjj C uw of uJ /N / BW Cl os /re {{J J/r
· S(js fem , extf (o) ;
!,
71) ;
n eJt r J l
6. ocJd f) cJJ'Cl() lt~ frn e:J (new fk flo n lt'.3f-~
rpll/9!J'c UtJT'd a ch'on PeyJo:;rmti:J ( lkiJ'en BuPA:t- e) l
J .sefTex.f (l' fJo /f !Jtxruefj'~
j
J) i
f. a.ck/ ( b) ; rf. acfd( t) i
I SeJ-912-e (l/oo , l/o oJ i
f·~erL(k-J_Cllf [n CJJ.JJi
{. seJU!slefe (f::;w eJ;
j
J
?-
E:x.pe'j{~menf- _g
) nbta c/JJ dt{Yf) _fe Java &n1re-1 ~
1 ~ J aua SW!'":!] Is Ct pQ'Jf f rd J M a f oo.tdailon drusei
(Jp c)
---, Used iv deueii:,p 6rUt oJr wrrdew- brw d appllwfl'cri
. .· In Java.
_, Je w a ~w/'re components ll(JAtwel..J_IJ-.
QJ l e
fabbedpane efc •
~ _c;, {jJ¥1
IEll o/'J
ti uC .
~ ,7h e Jway.swlryJ rpaclWf!e pc'.}(er»'df!3
dm s~ 'ft:JZJ
xtfteJ.£1,
Jc wa 3£1lrt1 AP! suQf, cu JBulfon J JTe
ff:fYl CAJ!J0se/f ef,
JText/J:Jteo1 J!Yad.Jo Bat/(?/() , J cl) ~e /m x Jce I
Jm;an ce ~ J But/Of) ~
b,Se}- Beu rviJ ( /-30; /CJO, /()CJ, l/o) 1 /Ix &xis, tf o 'J,<,/ JI w/d.Jt
r(add (6); II addltj 6ui1C;YJ In JfJCarn~.
{ · SefgJ l{J { 'I oo, 500) ; II C/CJO W /C1ll .
f-seJ-LatjcuJ-{ n/Jll};
f se1u1sle1 e (f8we J j
J
1
f?)filfl?~ :-
Expc:JrlmetJ - l/
(JN} e:xJ fa '(1()}J'rc{! _jjJ e r on
(' ef) f R/-1IJIJ c
f!PJ Ja va ft P ! Iha.I Con O tfe J!
1'.s Ct
The JfJEC
Jcn1 o/aJ a, e_ rp ed ~ dola,
OYlij WN>I C'if foJu
0 o Ja b ~ @.
J
- -~·/-o:)( 821 rn a r'Relai;'or.a
w t'f e J OJJ a_ 0/ 'p liC fthOrJ
J M l nef_ps -!j a u itJ (}f
!ti :x e e f» 1 qg ,JIamrn/1/
fn af moNxfle,, fh BJ e
ClCJfU//JeJ: ·
c/.a :la. .s ex n {'~ .J i Ice ex c/.&aJ xµ e
:t • CCJfl ne cf- fo a_
1~ a n d up d-oJ e 90 ?P tJ @ ..S fa le m ~ lo
2. ~ervJ qp .e:::1
"
In e c1.a/tLbru ~.
O rd p: yr oc e1 s M e :rr (3,ju.J.E Jt t>c,t./uc d f ~
E- R el.YI feu e
~lrn pJ e c~ d
- e i':)(G lfjm ef\J fj/U(lj q_
7/ ie fgfJEXJJ~
r
JJ_m pJ e ~ /nt3J e f/)31 ee Sf (: fs :
f ~!'mp) e eK
l-!ac/2/n~,
~fJlu/7'on
/tJf}UfJ (6 0£ >} /
na f- I £NP//,J
/I (xJJ(l/Jm e CjrJdc2n~'a/J. 11
sfo.h 'c f7' nOI ~f j fl1J I?if-SJ =-- ''Pm seu o&
J ~;
i
(JJa!x/c ~f ef; 'c Ut)f' rn al n (J bl /~ tJ
OlcgJ )
FmpfqJee1'';
Rrf2J {1ij-sefAJ == s /-r()f . ex e CJLfe 02u e~ Cscz..1) ;
wh /J e, (:51s • ne')(.}-tJ) f
I; Pef81t' eve. ~ c_f!1ur»y; n arne
In f I of == ~J , fl efPn f- ( er I' d',J;
In t Dffe " 8t~ •8e f1 nf (•ClfV'J;
ra
~ bf( /1:nf- "- "()/J '3 eHf.JI AJ/ j f''} I f'u {"
s;-p{f'f'fj .).asf- -=- :rtJ ·8 el-S f-Jf I"{J (•_lcJ..J f: );
1:t!j l
If «OJnn t ~ nuJJ)
((7f)f)n , C.itJ~e () 1
J colch {_s(!Ji 8t c_eph'Ofl Jc J ~
ff. pi /nftf(Lek fJICl('dJ;
:.1.
,J
s;pkm. {)U),p:;rmtJn f' 6rrodq/'0 i
3
j
AJ w J er us com p/Je abt'YJ e exam pie' ro f ~&Js :
8
ci\> Ja.111c {l':J!31£amp)e , JMa,
Ct\>
C;Y(( 1l!r'(} c;/(l (t/'()('1/ ·
Pw;r:,r
1nt°1fcw,
~p·ec1- Q .31
a d{µi
(JS e ero'Jf0 l(J~
11
-f,sff1:Jt+th
J CoJ-d1 CIo6 ceph' (J('C J f 8, pJ?!rrt~ fcJm~ 7ur. ace ( J; J 1j
4, Jaua. ee.Jf t'fj Se;xue"7 to. c
UJo/1:l'fl Jo(Yf Cftertt on {j)OMt 6{)(C. ~ _
t))ieclL dt' en f p:)(o.JX/J./YI CLJ !BfJcXJJ.s, i
~ j 0JtJ /:WI et'ff1] cJJent J OCaJ/JOSf 6O(, b
Cannectl'"fj io )oca.P Aost Dn pou1f- tcm
Just CO(}f)(;d ed 1o Joc_aJ/2osf- I 121, tJ, CJ, I: ~ot r,,
Se8UJ em ..9Ctfj .s 1h Of) & &eu. /(J:;r Cornn ec://~ fa
/
_b/ )C'.9f/oJc,~ - 7-
Jo JOJJo. . v..lt1J , l/1T() :Jf('_7J- l <'J/-
SC' . ,1
/nf.,ro( W clrcn
ar d c1terpcns e f/)cto3 j1o.m .
e p:tro,:po.m J fn aJ- ull.tn on 0
Java S(','>tulefs {)j (
Ex.pe~ /menf
II f'mpo81 t j({!S{jJ./J(( Jcwa Jiw tcm/e;. /
/mpo8t/- jaJJ . lo . f ;
lmpoJ1tj ri x , 3 (?JluJeJ- . ?fj
lmpo:1 cwa x · SeJruJef ./Jffp , Jf;
1
// <Pu d!1t+p re(;( vJeJ- drus .
c dm!> HcJJowo:xol e'L!PrdJ; /-1t1pSeJ1JJl&- [
J
rpll/JfJ'c UCJ1Yi do 6,e f{ Hifp ~:;ruJ& ;Q~ eJ/ - Jfes rJ)e, 1;
· HtfpSeJtufef-ReJPOfLJe)
Mj(CltJJ Se fJf uJer G)rcefJ 11 1 I tJ Sx cep fJ CA [
(Y(eJ {X/flJ p.s( })-(O ()f Pn JP f ("f()'Jif IA/m )''}j
1/):JJ/nfW:sr i/f:1
(j,!1 •f))t/n0fl [•th>'' -r rne3sa_g e -r ' L. / h n 'J;
j
rpu.i>tic uot'd de~fy~CJ f
/I do n&n lf'3 •
j
LseL1uJeJ >
t Jr t>t vJ eJ - natn e ) /---f eJJ o UJoJcJ.q L IS r .Jt 11.Jef-- no..rn c)
! S•(\W)ef - clm 5 ) /1eJJDC)} oJfJd c Is eJf ul el· - df.11, ': ,
~ /SeuruJ.ef >
L~8'-,ru1. el- - mappl _::, ·
cs i"cJI uJeJ _ 110 e > Hell(:) (JJ omd ·use-xvief-'rom ,J
( U:Yr} - rpaff f) >I HeJJa uJOufffi LI (j_ j!} - paJJeJI fl )