Professional Documents
Culture Documents
Design Patterns Natraz
Design Patterns Natraz
com
tutorial4us.com
A Perfect Place for All Tutorials Resources
www.tutorial4us.com
A Perfect Place for All Tutorials Resources
Design
Patterns
(Natraj Notes)
www.tutorial4us.com
,I
dgloj,rrrTy
S a"re
-7he
$(rst
Aon
-)
use
n-e
Slto
prob)e/Ds
le}ndogieS
o?
aff,t'tahctY,
ePfer;
uEJt ln
dt*brr*nt
pn
jd
a14'Lraa,t)oa
Soltr
ticn
is
c-ojxe./
os
- WlIetn
the
Cr{Lri"fuV1(h
TSo
l&9'c;n ;srlfi
rrrcq n tcrl
iol pleoen
and
n9
leorb
n5
l.atita
derign g $e
Geracrqrltr pLITL
+..Kes
+asu +!'(
dadcnc
c,r)
tt
desl I
pla.ce in
dcrtlopeog
1"3 f },"s"
-i
Singie
JdF
fdn java
69'*hroni
Fad-ar
pra.lec
neeJ
Jesign pet&o nJ
fcchnoloSU
Jorl"
ttnd
TatV
Prt
a16l
clc'ss
priic{ n
TYnplarc rnerho d
Prtc'n
Et-.itdel
pmtfrne P&rn
flg c,:eifhr lzrErn
f 0c (rnvigidn
AdctPftr clc!(9
Fesn li h e
of
"<trd
v. o o(r},
o&4
Vielo
runFr o I
hre,o
Vci
osic^r
lera.l
ia(,
mve3
M\,(a
acr'^ tYo \\
e1
llel()e'l
Crrn06sii
P'rltn
JDro iias
- '"
d es ;
3n
lr;n
'
;za't'lon oP
lass
I *n*l
elf
C*tPtiioo '
wr-@r--!9ry!li-'
xJ $nglet-on jaua
[-aLrort Yoerlod
Absi"au
o?
,rPeciBad rhe
Ab gh
6(
-)
lO
rt "t
-)
frr
soltnhidn
'
Pr:.fftYn
3 :-
Sessiqn Prrc.(d e
t'\
es
sag gF.,rc. d 3
Jetr)oye's
$trvteLa-cf<1
2gs
&sines Sl)cli$a-hc
,".
i.toOet Layr"i
DA
o ( tlla
lt{
d*,6"J frLk'ns'
tl^.t a!
;obi )
esl
Ab6tYac,r DDo
S,*otn
-P
Java class
!4I:i--
lo.,,"U
&$sHn3
hlqb de
merftn
,J
degtc,d,"
rn,u''ple jirns3
@'+
Use
the
-,
---. Ahe
f.at
'-
Se.!v
lce
ollcrrs d
k#
fxrrf6
eaqlp-
f+
is
recomende
tro Cl{a.l..
o'd
singlera
logge* clors
&-"&r.
iavo. clcrls -
fu
Los+j
r|'e
is
Ap:
clc.x toitl 5e
locilcY
F,( Jvm ls
irnplzren
diwn
Cq-r
ted
as
ar
Sf13lef.",
cla11
"ia^:a_
gqllet
rcd aS 3;r6l*"n
jaLT4 daa-
jw"
c,luu
a,-
iU
must
^
CJ
'J
aon sl.rkc]rctrs
r
bn;ra,<
t hdr,{r Sla}i c qtf1rt.te Vadd$le tn
r 5z.me clavs
c /onln 3 prore rs
gVe{ 'r ilg
Clc'neL) to Scrrpre lS
nous
rr.rsr
1e
o-s< otic4t.e.
,ocrlod
og o clos
6611t
I &s
i.e
Tn
"
ilj ;flj:'il
h" h
6c.po-ble
ft.ro.1 rcrl'".\
C*"h"A odttFs
37eoling
On
J <rol'i
n5
ll
S;oileTanlcsr.JavA
Cld95
STes+
/lgotlc r.efetore
plivcrt
Sl-ati
/, Irnvotr
.!,7
varta-bte
$Tesr
b=nqt,
ttshuetw
Ct
ftllcltse Srestt I
JL
s'o'
( '' sresr :
)'
),'
t
,-z
llstttic
lllblic
\v.
{-aC."g nerlloJ
S
lali
$r.st
crqg( )
l'4;c
iPIn==n,,11;
=h.!t)
STe*tt )
\v
a <ftJurrl
J l/clas
'
\-'
i
$f..rr
1,
C );
=$Terr' ctaJ<
fi-:
16=
s.o ,p
6, trbj
lrrashcode
t,
t>
g.o.f (" tl
s'D,P L"
tl
i5 ''
t'
'l^rt3;" t x)
,,'+b.harlGrec) ) j
,,.+g.h"shCode()
-- ir.r./a c
7 jr*o
\'J
inglr
Stn1ll.
hnTctr.
,'
j,.
hartro'{c(r-
-) iav6'
lang.
ze
-.Qg.,c1,ron;
,j:kn
SiDgleto
-TO
lass
S6hchYDrnzed merloJt
u<inl
rrrctrt"l
anJ ,rkr
ne,{
k{rrord
(x.
ca,'r
6f
yrrtfiod
c5
javrr clt
is
r) Srotic
frcJor5 rubo
er"-O"r
cra$e
n3
Lcsr
DJ^ rle
3n
S;.,cbnai rx
P;ne.l r.rrlrods
6( n-r
S"61u
rnrrfr$read;n3
-.
icroa
d-s*\ vaust Ie
'
la Lcm
urrr}'
'Pr^iu;
ut5 ar:d
05 taclrrl
CottPd
cbi4r
afdgn3
.'e<
r';tlcos
..,
Utrt
lrs
ocon c lars(o{ )
pethod " ,
trr *,od
l)
Iorfon3 meiroct
-3.6ic"nca
ffilal.t8{trnthods:
-Thvud.
t=
-lt tea d
carrc
Ttwad { ) j
cl&6s
Qr.r,H-e
fat.',aen
"
vt = Qendme '6.1i)r.n6rr. e Ct
cl
Ca
Lnde'r '
ce
5toti
Sk
pu5liC
(t:
o$ecl
art
'
iF
clas
rome
abgrraLt
Ctossna"'u
i5 1.cl'{qd I
Exomples
6', lmtonu
$t
tng
f,tr;n'1
clar5 p[cl"
it
c'["t"rs
-p.u,tt3
tncrhod :
clatt cantaaa
c 'ft<nx5 r'.uho d
tlc
Cc'tend<x
(Te4,| o6eet 4
Lrc& \
'fhes' a'ft
on\fl ptvaLt Gmsrr'-dqJ
og
c/4ss).
-fa,ro1 rrrrtrodf
Ste'-c
gtfnsru^
probrjf.t
"f .16"1
p*I}-
-)
siogle
olule
c &.i.r"1 *rma
ab
ile
a.jg dt't
rrrorrrg he 6h$
i-
jaraclc.ss-
@) F".*t
2!:lYV
java .lasg :-
Thar
grurlcrn
iS
muldpte rtrreads
, this
iS:[s
Cla55
Qantirre
Q't"g
s? ne,.d
[-ov- );
3r - 5. ccnc o]rr ['t.ir d) I
il
Ok\et\o
rpme >
J inu tc're'
petho
cl [ rrrarn rovne)
_-/
t-
'S*r"g
5a = sb'fcr.bSi.rog
prrc l=ierc
. $r"rnX
LP
tnaot
4,rrorg
.._.
fo c.reax trol
'
=J
sk;ng cl,br
Fur-trrt Yr0ho
rhe
16
$wrn6
"U,iect
GdYr {Jtrr n
c\pat gilr'n
by &,tn ,*.a
c,b.rs
ohictr
rarrty+s cetw,
(-s,
Vrr-eNl
enen1
otk,
clc"rs
lytc
o4rts-(
*ren usc
Dosl-6rrf
i'e'e^cdt'elio
ol"tc''ts
**yl
&.to.
d'&ti*&)
'"^*ft
* M\'tjl9i
5rroto
tgpe
pblic
of
Tnskarnce
kcfdnj n:noA Z -
Zc\elsname, aint<r
f$'n3
.lors
&.e
6trrn1
3r =
$d.5
5r
i5
c>
rwr
nerl
f zattftatt
$r'rng
= 5r. corrot (
imYrtriaile
SnLq&ero,
cl.(gs
ctdc\4
i6
hert
0')
cla$
naF'e>
*tnol (-\
i
("or'):
"herro
")
// ornerro
5b' ofrcnd (-
[gung6"?Ft
c&i
[o,e),. /f t"rr
rrxrbo d '
-*ft me (tdnX"lar:
\)aPt1 )
tl
s3
n',eficd
et =
$x'ng&pput
t-ol" ):
$r:"gl},t?e< ori
llctd,l
r.o6t
cf rht
clttl )
pn&Rrtd
ci{ *st*u"
,atltf"
d<rlel'ra
U.*ar3
a"vo clavt-l
m,,laHe classcr'
' 't .,
// tfst'ia$r^
+t6f
,b ',
ierr(ior
a,
ryI!
;nr u )
l-
I rl.;r'o-- ;
^
l-hs L=b l
p[an
9me
1**
a it i' cottd
cJet)
d? a*-a;
b(
,.(t,o^n
b=b*b)
"*1"'9!e
o!|t!'1irs
ue!t'ts1
lP il
tk+t
it
n&^t,
i( \^'t *llott\ *"1'
objt'r *'a
0t inm;*(c
"
'n&hL
dsd' i<
* oW
ou1at. -t
cutA ,tt'*le
rs4ip4e.
@ @
r/<
&tu ;' n"el)kt| i{ tt i.l ve{ltrfin3 ord
obytt
c['as
i'
c-JtA
,o94
^ l'*-;*')'
s.o.f,('a="s+"5=.+)l
llctas
,t
n
.,
,ru-[5'1Ii *lr)
^^
Tarl'ro''o)'
), *-n*'
1'
4'^?1")j
.u^
()
-+r' La:tcoac )l
!,oar*toect".
a'-"'j6i6p*t ct)
ra:Lc'art))
\llro^n
ll
auN
or I oq lrorr
bt'*ry'*r
->
SniT Cqn6tant
rrr.r)
---a
16
dprrS
ohliTe
coill
ttr,
.--.
0.5
fDf
{r ".r*iniq
8i\En
6nr;6t-cln
Pcbl
Srrir5 cnnorant
cldsses
ruhuble
'IO deubPe
thj
l,irri''1 lr6ic
ot:rYn'ble
occesfed
jovo'lang
Canstan
Rom Poot
' Sr'in3
1- pools o'e
Dcre
aa
clals
mF
i5
i i l-Y
need d
as
dil'crD
aval table
'
gs
c1"!5
v
irnrxr rarblt
'
rl-r5 aYe
classes '
ttsc" - dehne
pot rhe
kioJ o?
be
objcd-s
mrrLtab\e .lava'
\v
1ec\ce'n
ab
ficarrcm 5 re1*r"cd
.rerat n ntlD obars'
i
c lctss
pnrrrle
io it
I $"A
sinura- ue
Van a-bte
.tD'-
dane thr.,t3h
{,1-
r.er{."di
\J
ura.ble
/l imrn
t'
'Jav6.
TegJ-
W_?
I clast -Iee r
{
,h'o
9i.o
pr;v"r/iq-I.ai.
//C*tw'"ro'
tlrc'b z
clarscs
o.'.
vtot- I'nlntrtaltq
ela
s b* t\ ^'"^ t
clat's.
iw,muta-Lle elntntt.
t)
",bXi1
' a"
thv ' a
5 o'
4'*l
*o $not
,"
(t'
puu\;c -l.sr
o"16
t>"
L'Tcst
"
?-Qataw
mtrffod oL<-,,
X*,.J .qr.a
"
Co's w c'cttr J ;
D't6 'K,.l'h'"ba 3
o'5r'n9 b)
*a1t;n I
'
tctu.{n hed
'Ie5J
(6' b
'
.'-,
ptu.
rest
trtotn
rno&fuS
Y)c,^'
ol
Iell (rhis'a' I ))
,*n rY tft,
{
dll'
d/sP( )
,'
ll ri"n"'
.j
.\
ltctr'r s
" P. u."f5r'';1[l
L,
t.rrt et=rle- mt
-
s'o ? ( t oql
t' dl:r(: i
r(Jr t'=g(
n
i:O, rri
t1 dise tr
a" ) I
tlo
'+5''ho..s}'9odec)
"'YoJ
has hcode
ao'" rc'r':h"
);
)l
h&s|.coh"'rtl'lokc"detl l'
'
i
't',1F
lerr rr- ' f
-i
&sr
arls)
t"-
/l >
lYnrn(k61e1f s t
Fr5ti6 las6
c
cl
/'u't"
.iU.t'lA
Irn,",(,-tdrlelat .lrvd
rn
Y
Tetnprctrc
o$'od pesigo
iastt ------)
parkr n i
'-J
'
\J
i
b(i;
o.c)
\_,/
bere tocompler( Ibe
::];
xt)l
.rrrryrr
ia,cl.t:e
,r:\o$ L1
atd *xt'{ sel*q'Le o(
oeed fD rn-rlriple
inVCr.tian,
use ltrr)rlole
prbtic V6id
{
_)
\
\-/
\)\
\-/\
)j
II):
t\
nooD
rr6nerho d (
\-/
mgrrerhoi()l
6or nurg
rnp:ho
Ccrrdetc
d i5 co[ed
Tcrnplo]e
met+]o
ri\
-a--
oRv\ sl-s
6^*--,"t'o"u
pccess X^^c
ll;re
l'ru'nort)
> ll
.-)
d'
W"rtW.
culrs l{
lhe +&sl.
'\
meb"dS in a qlrnce tb
-J
.\--)
)
,,--z-
&c);
btr;
cL) t
d(
t0$\a1
roe6o
16 \-/
Pcryst Pr,ccts da]" oL'iett
n'r-rAoJ I
e' p'*xO
to c\aaog ?eTslsrcnLe
\-/
oPn tf(I]s J
fl'e pe&""ance }ecarse /tere
DG
_t
d\l(I
litser ni're
EgS
t"'lrj
lgeo
1on;c
rnog &3rc.de
Use F*.
torn?
tle
rGffiA
3i"-'
Pe'r{zrr"a*'ce
L''e R"dc.
cles;3n
pcrrk''
n
,,
d;'..rl.J
db elto io ;rnPr#
crbEtrc..cl:-
ra
r AbstraCr
Facfar
q19.
|a&va
rnslcr
Rlfs" tt"t^ tt
r1
gUrnrn
cr)
lrf) rhe
'
d0'!
i-
i.;ot
b)a
need
[rr)
s]$crt
ePa,fo
cteo-hL
cl&ss nortres
rhe
o{oett
b inlercrf-
Scale c4pliaorianS
and tn &..rn
'intt^r.ftre
-,,,
Srmll
t,hrte
- !a*
\.-,,
h;
rhe
iq (r r
irnp{evrrenloltcn
of
o\ie.rS.
rlose
grirtnsicn
DP
Nt'n*1 gn.."
'
eb6fo4t
class
na'rs
ol
r$e
ohietts
and
enHre f,dbc spd p;ca-6on Obc d+wrs ctevabryfr*
\.-- ldbc code 's hq'r'ehiq3 based cro obsrro* -t'o"t1
ddvctrs in
Ltdtizint flpse
octv
Gnnecti<rna-=D'naYb*g"''6tt(rn*tF*(&bc:odbc:oraAsr"]'#[*'";ggt')"
I-,encsnlsiduconr'hi*s-l-ltlstttohlttrc(idbcd"iuo{s'trTuaJjauactaxrl1al-
irnplerr*r,ts jarn'
srur
'
G'"rtr"ion
(-'- '- )
e!rr^ il.xrg h D",u.N4ongtL{ . get&nrerdon
\v' !,oru d cm jduc dviuw omd jclbc tot u.)a us(
lhltt{n
:
:
its
imp\errunr1tu-ti
cm'
Lncrt'ln3
ris &eR^{'f
"p.11tr
Ihis
is
'i6
clax rnr"e
clavet obr'ttt
y*.!
Exarople 6n
6bA) ic,( r
ll cor*o.
+i,u'..!11 irnCe'nenhCri-i('n).
innr ft,1
inrtyR.re Aoc
t
/]lbt,c vojd xyz();
.t
JJ
i.Ple''r"t
.!
.ia3sr6
Testt iroplercotS
Cldss
A(3
{
P&b\id
lesil ( )
{
6.c
&
[tr'5llc Vo;d
S.c' P
/4r
z( )
? 1f.",
;'nnl*ne*raf
Clats -Jbst?,
..n
cl6.?-s
irplcn're'r-l
S +tsc
?&b\ic
-las+at )
t ".p I reva');
fr.uf
1.
71resr1
CidcS
De"no
rzr
t'(-Sil"6
Ats"
6k.-hc
pub\i(
t
\'<we
l)4**X
if
p*,
'
(' ',o,r'.' eyas ('a ))
*n,,n
eite
{ l5r
if
neo"l
lrrl t l:
(rurv.1c. eX,,.olr
l*.b"))
.rt.tltIn MLLu -Te:fa
.rttt\r'r
4u\l i
t) ;
\
'.'o-L )
ll
aw,t uAc
fL
v !n (Sn,,
rtlt"tr
{U.r'o.rE
clc's
fn"Uttc
-1",r"7 y"tt
o'6e
ll
oLrv*"+
45.
a
tt.
1ll","
otr
f""n't"l
)'
xamlle
o'^
D,'^o''"r,
xyz() l
L,.
r cIM
fl
'it'
>J*uo
lJ6,':;a^1
*-tb"'&-d.\
C,,rdlloj
I dot'J
a^
Prcrn Scr.rrt),
ner.,J
;-':;,,:
ff"ffi]
':=:'
'
o!'u"*t-'n1
'YLfcr{
fvfQ^bs"
dc+r. h^s
le''tl ho';'-'3 *rc ex;srin3 ohir-rl
.,,.-
@sr,utllr/ 6ill
S^*n
nd Lt
ntnohkt
d.id
conlzdns u*t;"6-&nr,ra
'
''ld-f,ton
J.fa
i";raa! d"$- |nl
k
e^eeu4l -f- "U'eo
/]lu
Vtr'a^l Clflsfrultals
plrn o 6iars ue c*"l'aA na'
tcitt nof Je
-7
Ce'tro.l'o6
cb';1
:'2 6fu'r' oLJrt-s G{c c'd'a k
;hJrra-fi 2""44,
tLol t*
6Ft3
. pecorre 'i{t', ;t vo n(el '( oLtffi i';uc'Lt;^n ^<L'
ebun)&I
"
orrl ;;
lr
i/
Che
O:.)-,
oV eoi'u^'UN&'*a a't In)+;^L
,,{
?*+o\r'
cloneable
int
0rb i
ftub)ic
&*of\ )nrx,lnr r)
L '
5 o' P (
A-- X;
b=r'
,,
uemg
ifl*S$arn
Ccrsr'Llcrzd
")
a..u'i'''.d
^-*^^ '
Fk""
Ptblic Dtrmt )
f
s'o
'r
nrrrr: o-?avorn
6cn-si't'tt<r
'
),'
BA);c 1hlt+
-gCtonc
[) n"^t E,rc(pHoh
f
Ohi*
o6j =
&pt'chrt
oqj
O; llp'|.-.-e
invobu
oE1<l.t-
;
B&tic vdid
clonln3 e'a''ftrLf
d+(
t5 o p (" 4
"
='+ot b:'+u)
//aots
'
P5
vm(srtrqtl
c.r911i{rnos
E<cg*tonl
d r. drspc) ;
/r*.P.-
D*o
4"
,t-n
ue(&m")a,'
f .".eL" J= l^o^lc"ae
ryCl*a
[]
d", Jirpcr;
\ I*"
I lL"^
hdrk^?
p,le6
>
*"
ll
t'"" ()uullel<xr
lcrnJuved
t6
rle
'
se ltrrre p no ccr Swcrc-F<rt exeuurit'n
a,on,',, usrd
---e Fle.^ objelrS Orc a.r.r5ed fin",.3 h
ctot'i5
Leoru
{xe
Ct^e'''bleTe*' Y''^
ll
.-z
>
Dest'nral,zorr
47LvP3
on {a
arornauhx
ctrFd
-1?r tdored
1o&n* ofi<rn
on
tta.
ltx fit".
rqtrosS9
',oitl
nri,-
b.
06laqb^o
.--Q",'dr.y
Dsigb pd$ern""-
PrGbleYb:-
Pto.
v!
cbnsi,
.(*tc,a
Couelex odie.rs
dl-ct3
h *"y
one
skf
n''"ltl glt 9-ple obje'+s
!'ot
obictt3
x
conpk
.g[ub'cn:' C-"r'...*
*,
C-st^,"c.t","tr
':""t:-
il""
/
G"nder eUe'ls
i'np'orT
r tle *'sobitt Q
Ccrnple*
-{ '
cluvs is lot-
rcco.r,ienJe
'
&ng et
;
ft^bllc inr Pti ce
{ .ftt<-\rn
eS;
J
3
cl&(s
I
F"rcr
}'Ltic int
vLfirv4
frx-cc( )
l5-;
13
!rt't<.
Clc,js
(
Pr,-b
lic ;n*
xtttn
liritec )
30 )
\
3
lats
f-leot&'tldcn
{
Pulli
c ir'f
arrcPvice
t)
\-
lo6;'
llLu;teu Potlu"
*tn
r^*
;mcet)
Ku'y,0 'Prce()+ nrrr 6bua,'
1
c
\'
.olcPtscrL)
t ,rt,r*
;r-*+ern fo6ic
norri hegt)' gnte(J + rtr^t
Yrn
Ddnui)'f'crt)
'
B,.irJ";T.rr -.i^vo
4las
'
*ntra D;nvt)'frrcQ;
.p-bl
L
"
l&r\
Bu ta,rT-
-\
-- *6'>
".
t"6r:
t
,' "(e
llc'^rt"^ ouYrl
YIe"IE"qAct()'
Ple^lLu;du 2L=n<'ra
in*
s'o
Y41
:mL
'
Ll
'
, O.,..t't
c'A''?s<
\-''l
ll C'"'\Nlc,. oLfuk a
:
J
^"*lLad-()'/
i^t Val1,=sL.crkP;cet)"
n
r. o.rC' +4,< sno,.l, (h.. iJ +W t )
:
e"'otl'[9cld"t
sL=ueA
\-/
1
i
NAPI3>
&'l
l>.huac
tTttt
i"':o
.he Au^t,u,
>-lIt-
ttllL\?rT
f,&,pret clace
------""-=-
12
h:-Xr
s:T
;*,,,.
"tr
Kai*u*sr
r{
rol<nrt"
'&ex
intetlac
x'|
"purtic
?._
a
.,,' ]t"
n,*1," {oid
I=-J
vo;d
-.Jrrc
t^vr'
t
,1'
-_lL
q-
tc
J
,-
vold c'L)"
i'nf ir'vrrrJs
*t
2'
i o*" "'* -1
goiJ L);
8,!;.
Q I b 11
v
a'totl-'
n ll as Iflwi le ; tyln
\J
i'n@twe
'
i^l<''.'A<j to lr'roo'det*'w:,-
^gl,A^
\\'r'
'.J
&'4 ingler'1l,^ts
o'(#'8&'
A;
'ui
r:::::-t o\,^ cto,. e,n'.f,::
'u
#\"-*;
ltrc?ae
r
&
+
'J, '*
4" olx &t 6tP -.r+oos '9
Jo7 g"t*^
t&. Pr-Sfa n
> fL.r
El;.t!'n?o\u^
,^t I .-
",x;-;;;:
t "ftsfaflie oW
*::::"':#"
D"vft"lur&'n
'a&'tr>
/, fuo lk;lJe,'lerr
-+.
*iw>
x1
a)
z-
v
)
*) ll"
'ntr(
^uiu'l
,v,
'T"rr'
it
9.
L',t-
]-tt"J h
J.B;;,uo
'--:-
o)opte' claus
trv"
;-elw'z^h1 *<^k'ce
i
r-' ok;\..u,."*
,'^' [ \l2'r^
\---2
PcrJ'tlc
inPlcm.*rs t'! z
rlaid a()
c\c'ra
,t
L\
\lr,rd
VaiJ aL)
n*"t
"
cf) f.3
flyol*^
TuY eav-n)'t
.
p#tr
3
it< oo\
caq owat.ide
t()
Yrltjc rtoiJ
'.-,/
,,A* J
"'-ih^u"*
1't'*+'+, l^R,l-a,< -*bh ' so +!'t c)t^ 4clats
- cLottc m<tl,*A LX e*e^L"'4 -n"- Aa"yla
'
;"a
,, t()
Vatd
Y'bllc
L.
\J'
erK^lr WN*^
T-"
^
t
clt
tJo;A t L)
Yulv'
tz
qpmera(
- - 'u
t4 fu o[4vt
Qo*dn
'
i ntratngl a*i
R"
' c^t"t"
to'I4so., B'
og
'atsna'nt
[c -{z)'a
cbN"s pirt
--
S;ou
lo6i,
t (aa"s
cn J^
/d^7
.tt'<
.
'
t
r\Ql merT'o<1 '1"9;iu't)
It
Le 6;adow l)nl"i,
'- ry e'\
\-.
l.r'^.
1-r-'-uide
n-' L'r':-:---
|
d'o"c n
t,
'
&"e4
Lo:nlor CJonEnT^s"
ure inltkces
t"*.*y','ff*
,l'lindoo?cLL\L\tfe"'u
dn ada+tu'bN
--)Jo,ual- ge,nru.(Jvne^ic6rlc-r- ctc&\ rr pa'r'n{
oLo* 4lp^
- g-
tl*L lo6es
c
cl-*s
'
fu
;( a'n olot*
)- davrr . c,ul t ' e.uen'F . fi;'Aotofidoyt<"t
i1i.-
1- i"'f;::#t:'W'ffia
,-*Alg::
-,
fia"us Cenynz*6
V'oq-F^e
y''vicl" 9g<';^l
.-'--.
y<f
ot eyer;"t c"'^Y
&'/<
aA:tta* elalq
98.*,.1
nwtt
5(}
objecl-
ase qbwtets
fart
inskad
PYas*e
o*
o{
.t===
i^
-a
APU'I
{"t^
-->
*'.d
ilt
nelcoo{r
6tr"n
he
t)ttLov{
r3 Je&-rr)
.Q",ic.\izat\e ohie'x
i
$.,,.o 'no"t Q i a' kw"
'+L" ^Ior"
SP;J iv'jd,*a-e
Sye-o! tL,Nes,
f2esurr$ts
a'i
Cop5 &r.,4 Pesurr&+
florF
i"^plutnouJs
L"
fr,n
t &nd it drr"etrq
olqiecl ' So, lt)e CAr|
zalte
i s oot 91idi
SoluHoD:.:
;19
"a t'*tt
e, rc^.I".i
:!tYY-
DTo c\c'ss
Qesul't
wr\ '
Agprta<,L
^
H it"^ 9'-t-%'< '
f^pVc<:
k 3VE
O+dL; li$2 fb oLi*
'
d,,a
ol\e'ucm
t'.,*-e
L+n c.tlcrr.lo'r
t14I
$"-'-lU
data-Svnto*uu
*'rd
ed Aaf
'i:.ff:f' :
D*'"
e qe
s.
&,5^
-"n
S',#",""
-lrgt-'.4La to sot'x
ynac'"" '
{1b
,!__43jS I )
ds
jl
6o.-.
r.,"c 1r"t",.6
{o
px
&"',r
-,,11-o",er<.s
Qr^lq*.*ttu*
Ul"
l.***I, drt^sv"*'^n il 6'-a'* to"kl l"P&-^
liL<- \tt''tvt
J'unsv""*''l
tztJ
f6^t/''
t-e
*"J u.) 6; Qr.,altons 9r,, ltaneou t -$t rse
AP+<n
lmouin1
l, ++*l
-'
Ja--to
Lallech'on
e"e"tr'
ln $e abrc Gar;o
D&S''"'r*'
l'.,r
*t1
orrl
,o,lrn
rc p*l*
uDdel3randinj
oli
I (Arro9L5t
$e
yro
utem
,.',ld,ca
col,inJ
l2rsar
QTTL
TS ( Ses{tr t5cro[i
lot tct'-i,esl',
qbooo
t<.
2ol Yd'yts|
tooo o
ALB.
---z La<\
*A--aq
'ilv
,eto'td
L"t
o?
P.."rt
ah
olLow
eiu**,+
fu
mc,lHrle
Coaknns
one oLPt
'
Ae
So,
-/n'',/L,t
U
qb'o
-10 ','oie 4e
1",,1 4t A^n-
-..u;'\e
gY,,oho. Pr<"rle
wwls
^"4
&)&
Qw)"k*)
1k'
y-no
s,iu,
Ce,'o'+ r^d,'<
euj,
vzcn^J
'
&ttt'Sr.+
dr,.rl6
h z*I
(*[;";
cLo+s
(nd^r''-u olt'.*
Q*9;
Ex^.plc
V.o
i".L&ffitu/e "tj*
volt..es
clars
E^pBenn
'
J n'''
iav
tr^s
f j^v"B*" )
l-
p&bl;c class
EnpBe"n
inr no;
Fuok S-"J nam? ,
f-!oJ. Q.* SG{;
P{ivat'e
/J
ll
*'*
ud,,
J-d
te, [ts'
t"
/l
/V"1L;sr
et cJ., +trv,
f,op0er,n
F<rr'\ mPlolee
tl;
tb
: nu,l
eb.
next( I )
c.r5
rb.
) ,'tl"tt
r|
Sor
lns
gerFLo"J
t:r ) i
t) i
');
al
An.o.rlLis
obj
rs (Res'us<;
uJ"
llaaA
al
't
J
.-4
add (eb )
oheu
a *"ybtr
,'
llrc\"ite
'
rr-
t\e obatt
xq
En7Bu".,
goneri
"eb' i'
4'eV" is
\a.[!zr' so, rl^e clc'o
'r'r'*'|t"J\
ioilLd ar'
d-
l^t
also ldo'^f, *o -*
's5'
i'
S,-itterl;
az
11 G^U- "1
d*^
D"I'o
d*6'&n
8'-
pgfl$zu"
clasS
*H'+*-t"w k
crt'u
",' tt
i-
m*ttiPl
!,'.tr^
incc.,-ie: IL'
ctarats
+Le
calcT-6
S',."
*\,
"'U^-t^'.k*
^*d
g1
]o
Fwlarat<S Can
i\ot<
E"o*r(o
..=-.---
do:v,ct
o^e
,.fuwu\ clauu
P-"\
-t''"'' S"*d'
tuel
'
ffiranu*
4r',
V8*^
fid ^
+t^'
l*r,,q
k^jW
'
t'
tn\V'/Y iaoa' iO' i
'l*s
&*ton*
clc'*
[J;te,v.L
Ilg-t"r''n
fuSuc
'tv'r
[ *'t^
s"|
i"'t-
o,;rrt L)
atb)
\
il Y'l
luJlic l|cdo*
.lo)J ,L'R''ttO*
]
ll
t n T^Ptt*t .l".vl l!
clotj Scn.r lJ"' rc'l exftn
g*^ton
f.
\HR,L
*ft
o^l yil&"<2.
:-
flr,*rlos"
)._/
D*r5"P"ttt"
p'S\e.";- D'xl"pt-X
LJ
:==:
*I
o' ct"r't
T^d*
t-"lrlc
*t);
'.-,
[rr,6tic VaiJ
5
\J
"L^P.*u(;.rt*)
(.r.ptt r);
3
3 \\tu'L"blrPJ{
\-
clotA
\*
Fre
""
{.
'Ta.r,lorc cbt's
ilfrwt;o"Z
'
l'J;rc"-r
Lxgnd
Qlr+t
uo'' 'l'P'*vti*
JA
$'il'#I:ui.[L",r,
\-' E#*v
\-/
\--,
\o= ua)
E"e&t*tLfn6'
EA+o"aUan't
to.r^c,irclS,; ;
ya'.flo.tLt
.
ctoSa g1
Iu,
3 il'v
\!
\--'l
Y,
caH^ff*ot' ") t 3
|It',l..r
u*
J"
'
T-uUntt'n
ald6
V'Ilt'
'
**u'o
it*
\r
ves
gc'
sL--v\e'n
9*"^wP'/L\:
(ro'z'")
= cc's'm
slnaQetutt
| '.l) l
-l*,,b^Wl@');
\/
\-
frePu^^
3l*a'
tt ck^u
J'
-(*
Fu0u+"*\tn'-(
orc'
+xr'))'
7 O
ta,f
6qlo q l,:o
*+e^&*,x',,i"acn,;-
ry:t
U^en_9:-
tlry*"d.,,'1
tt-
oht"+
ryn*",
sd*tio-- l)tf,*d*rq \]rriatl.". (n.\
it
fl-a'*t l"-
La*a3 s/r':
tl'-,y"
JNot:c,J.
\-,.
\--,'
d@w
&pna,"q fnlt*i
on
.-
vim{a,
t-
ts latJs
Afsr6n< ValLk s ro \rort{Te thpn ir
*laFnde"rt
'\-./
f,uu*
u"G
-.
g-
'
"
F,6hu
rh'"
7lp
to' J
y6luel n W'
,t"tues
o\y
tt
ts
F@;
-fhe
Mt
==-0'0
4 'ke @^
- it
u obie*
:*-l\" @tI ohlu* ls
11"iuo.!-;u
iHa.L u
6tcuye-d
f.a'
:
snXkt
>fi*1?"y"';*t
,
n
ca tl l
tL'nde'r
u7^fitd"tP''-'
cunzz
,nA d*^ l''*4L *u!''d aJl-s
'
v,
&.,
YW*go
.J
-/
Prcdcrnt-
i-
E dhpus oP
mp)a,1ee
CI
rnmc
eb+
e'b3
eba
no: l0
emplo,leel dt-t-all
rtPr?trudoq +
ads
'no*{G\
,'@9
,air
t@9,,
gx+rinsJc
infytn
ryY"^;
ic
edf:r'/.
--)c"t rn"^
Vcheg
ee-<
6Hll
is
cr
q:stibi
-)
rnt,lHele
Is sW(1
lo eod'' obie*
q(hlhslc drjo
yyy;
e+8-
.tu*'A
patk,
(w^
Aou+^
"dt"
Gnct
frlr)nsic duro
cti
) nnd
f,n e*u"nl.
l^
onA
ure
i''
it ir
i!
CdJle
e'L<"A
xl-rln
;"Htd"o
sic
Ja-t.q '
oLiet
an)
PlXce,3w
sl'o'eJ elxl oLJ?w fl^*"11.
Dat1a
ayp\;cz^Hun
on ?\ua1t't
pesix'r ?aj+<r{n
'
r)*
o
P.leb leve
lwf-{
Vieco
D4;1n pnxt
",-
flobterD:- Nr}inj
kills . *,e
Kils the
sbl'J t-ia7l
recddbili
i3
.rerrgobit;
ol
less Jsf
ccde
0 ftP b&i rf -r n
(e
po'rrX 9qpiizd
Cujtaro
n
op
mcii
need
la u3e *r
dedomll oo
exf,
f,orrot'i n3
esgian +nE
JsP
(l)nKr* loSl
oebruge r
61,-1a,"
p[a
q.s
qS
'
p"r"
og
6ctgele:
ra
[,ntt
(54e"+"r wd'4aaez)
-c41ez)
coce\ fncga'rn Qre rro f ye ura-6te
mt,rhple cr)cb \.t14
ueb
ec.L .?a1e I
d,n
gllt
coo,jei
0
il;t
+,
D ' i(
loSi<
YLsok)cE
cv't<nta
'
v"s#-"
Bc'l-
tt &lk'e*
atbrcle
il, &r*dile
l"to \
Wneed
C".rle
use
irnplenn *
hn'V rlu^
lk-
grure
1 Jry
(6cro.are.r
lo6;c o(
of^
*"LW1,*
co'.r"r- lltc
FooFs totl c
,"d
t*f-S
p?Dgra'a
Setlu b6tc
ryry::,
cu-^- l,6,rt
^ovrfu
rrA
&'Lb tbX'|s
van Can*t&
l'{i
kod?!
^r*
Ape he,e', kq,:l kc*un rLcl
Thz mutlt1le
n"utas
k^w.Ii.r'l''91
(*'*'oo' "trb4|ad)
4f* 'ilre
Jsp
kfla
FooK! looic
-fi)!
o nkth ;s no'}"A b @g
to6s
1lo6;c
p^ott
ttx
rl,is
grlpt le*
yn
YftM.5
Ccmt,sri
Yyv'
XUP
4"
prD3ram '
taXs
J..r..code
s e(ef
f&d
lin'llc'li ao5
-Brraoi''3
J5P
o(
(:l Jsrl
--ft,:rd
) io f,sp is ku,ro 3
:-
Jova
n *
"P
ery'"n
natn 1,gl""*ou"t
,a. va,a$!-)
oxa
i'
p6p : i"clade
e,al"ws"o'vw
P,f-tl
>
itt
llodLr sYv
Sorurct
/ 5sg f,vo gr
u. iiqrude (-, -)Lor)
Zio:
P;n
,,f
"rclf"{e
iXcu,ae
>
ficrin Coy!t1*
Ar.*cf|t lB;c
f"
lo;ic
4- ,^xt"fqcz
a.1a-i.f-,
Lr')
forr
1""
It
co'"roon lo61c
r.aj^O'nk*
and
f,qa.ter
Jd . i"tftrde Ct
1"6
rc
fectla-ble
i?i(s )
ryry
-l.rke $,e
y'
o"
.t4 A",a"lfu
Y\"c^ms
u'LV c'g
oeL
ttsa'"ce
dtfi'
4 g'*
ualattx."tt'q
f"{""v
- LLt,^Ft:
(an
#::,'"["Hi^
J$: :,:T."n:,
&*tr
2afu,$ort
,nuJ U\
&oow
,tt^tron1
U*sr,llw"tl,ar,.
Tes+\rl7'do
of
0-
Q ceL a4,yl'c"Ito*o
cos
Ir*anryrt J.;**Nt@f
v'cL'l^'\
a't-h^1
mo4^ u't-Yil-an'
-T.rthf [w,]ey/""n')
$."r zr+'l-rrA -
-.- ^ ,j"r.a;E;f
wY,oru
"ctl ')
laoa JoueT (
bW,ll t"a'l^ur'-
ret&lrl t>'d'.
wuIE:-
!;Lon
1',^
fiLL
olrt/lahaq
Fn'"'
=;
,luL ,,r"
)^,sa cL,-xcs
(-.ro^
c-0*.-, )
Drr*.uoGui.r
i'
t' J-
9n*w
Atx'"Cb"o "
(b^"*"JC*wn
&cxz'*'*ltu {'a
hie-b. Arn
.nrA.xm\
ael>'
rSrv
PrDiraro iD
Fro"
Ci^H1ffi
IsE!-
lJsP
Porkr h
' xrfl
PrD01^r4m
Pif"
co;tl, *'i0
* ' clo uY
oartaft
I
ttust te OmergtH in
or
"
ut-b'nmt
fute
el
'le't
Poffc'r 4
,\ftn6ltm rnarti uvt
coltfr
4toeb
opp
<*wkJ.>
{JervlCf -Dame
>F
alg.rvlef
ls&v t&
>
rsrv z
cla!,g
Ecm
1pm
/Sc,rutcr _clac s 1
4suvlu >
/Scrv l(i_rrnpplnX 1
Lkxvlet
ncLrtr-
/-url - Par*an
Llwte*
-Ym1,pinq
>
patl<trn
4weh't+'t'>
Ju.tu
clu\
y*l;c
io.+ )
V6ld
t
Jl6*o,
p;*N'''*
I +v,
?,
--'n's'
g*I)a*
t>)
1,,
reoL/1e|l
,rt-tql
!^"wP^r'"x'*)r1."
lua"as
s'
lnt
if
J,a+
=- b ;
(V,. 6etQ'vWPa,O.wats
( lt,'n')
-Tesr7
.lr(r.{l
t1 =- neta
I = tt
- bmt
-l?st}|
(to,>o);
lliv
,M t.
(
/r''a" ) )
etci''iP (1n ' nr:Q*wPoAL) ' e#ata
S
Y.' Lm-Llot'>o)l
is
i " + rcsut)
jlla"a"tq
+)+\C'"'te1-fup*tt *t
Wt
uo,,
)nNosr(WW'utL*r
Xr*,,"
L
dn6rt
(*+l ,'rt') )
t
j
(E JntetcePhn3 t'fu:llar i9
C-t
aaAz
'r.s1r,"1
fi
6ffis,r
Dorc:
r6foO
p'4}goot
ol
1"o.
.,4af.{.-L'Or*6o,
,paf,1.esta1,uce
L
:
t}
YaWtL +
\-/
\-./
f?r) 'ef*s".rS
rod;
!-,u.,r
r,r
lodo-rl
,,=\
i1Aa
*.,,*",*ftuJ---
rl
( 'l
slv-!
:)
q,re
S.'m)
s."rS
Pc(+'Fsrhse
it;'r'-}}{
{odrr.
(,lr) .rfrer6f'
Inl
procrs;"6
Svv
e)
l,np
-z g.tet
n
te3tsru e
52 cr"rl
;6 o6Ar, !u.t-
Brrcr
tr'
Deri6n
Frr'v
implem<av;n6 inlercephhfi
inlycephhfi
p''t*n
$'-""1J/6
'*
plote
r|''e
'o"n'"x
lcf.i c in e*t+ptr.n p-7,^.
-*rroc'tnX PtL.efs +
O f'.'rl^n"ur'l-t",)
() -*|,"-.-sn
l'tr r,
[o6r.
1"66r"tr t7i"
Frc,rccorrz.,tte'r -Iiaps
&f.'ctprinJ Tjrrc<
rfie ftellelt
-lw.ps
$e,
F;r
ie.r . j c.r
glbllc
yz-ohn,U,
-
po"t -"tcsld1r e
t6
,ftefrrLt
lHs *rrn
0"'"f
D4.Lptrnl-
ro
to
YY
tv",
*3Sl"J
$"ufet g,'06'c"ns., Gp
clc.,sses
:-
cl&s5
llgF,rtct irrrplernanl
FllaY
{
P{"{blic
Voi d
inir (Fitaconfil f3 )
f/n;r,oti."n.n
I7t'
l>,aic
t
f/ rn*
-tc1,,^"st pnawn
ctcr Frvg
L)
luniruH^!
z--g
a.1 [o6l
1"6+
'
Tt4raNc'^'
1-
Vgt c
f-)
a-
JD
Cr"rtptlet"
a'1
Shc.rs
Abet
ar
proLla'n :
c^ppliLc\))am
Ftrrc.D;"pt
b4 i-nla'rr-r.$n1
iorc" cct^
.[er is a
r;.,J
,',eJc
I,rr_rD.tJ',
oainX
er '
Conrmtttn :-
l.
.rai., lo6;.c
d\d.+hd
tn
X+*c+r'6Drr"
Fz,ntC*.'ot r.r
's Ylit
'errr.",'),
yncr*s
. lez s
hrrs
de
F,l'o-(9"rroF,* )
-?rr.leri7
"
nutr;(;""Jeo,t
p$a"+ G,*'"llw
i,*o
dnxas
'
(*l'r^l-$'")
-G*An,
Bltoft. trl^Johl
ry*ry
--t Abshoct &"trottel Chss i! *t .*fu
J",r-tar'.6Frt
-z \n
5i,"*<
r'r
hs-?*t'Y '
4-
'
p,V.,o
'16
e4 sJde
Ur,n
wftinm<ttt Dq,nrP,n
9,-lo,t4
tu,
ccaro.'i,
C"6)
p-f'"t-
^"
lron+ (or+bUer
fitaDt'r-t.t-.
\'./
ll])
*)
0
o,n" I
S
g-:rr
cttn* Arp
cl)qrBfd
JEE
l-.
|r2lYe
_@
t
t-
4 Ou mart
Woacio'"-
oho*rc
1f
pztnote
.ro(lhd h,{
cticz.l diw{
''-""tdrlt
& tr/.1
pr
-lot
a.'P
rrrl
B nir&
$ypttur.an
l<rr,
"rrr''tdplc
>o,L,,A l'1?t
Llu'
Lngln
gq-.
(onScx.t''t,3
rs
cl\t^f arJ
flut it
@Eu-tlt^ct! Coryu^t*
4"
o 9"cuAo +.,Ve
oLoje
?vfu
r,iA
l*'aoC",
Canrav*
W
"rt*@,
!e\!i.or}.,aa
dc
il
'oJ?^L
4, Lr)
^.
("ui*t,oJ"
d"e,','t-
aor 61
Gt
".,
ur
[,u$
,'
trJ
is @tql
\oS".l"-f i*l".Le
ps
.ndftta4.. ri,rJnl fr
;t-t<"-z'al''7 afrt'
rn'"d+i
p'lr- Rug
^r-rs
Ct
'nrerrerut
ui-tizig orth q
c-"
'U
^etrJofu,
ro].,n)
I"io
-- 1. dat'd ;nk ot eN4 cnl)u A" "nPfo luy" no's 2l ,.nA >)- '
<e"v.o A PP
crienr AfP
eliet'J Al
r&1,lttr@
fla-t
Sgnrhrrnor,
c3-rrun;
ca'tl
a"d
XP
battc
ctlgnl-
ls
<r4
rll
cr
i"nJ-
futlt"r{o-'
<<ntt-'t -A1p\;caJ4orl
Llocve
u-z
'11pn,
taytt
,n
eliL\1t Jr". gn* . +!^* lr is
flaer
udill
sr,utr
filt
,rpat^e
'I
Eitih
tfta
elic^r Av
tt/.
coh'o"
t" &nv,Mtrrlaatl0"i.4ft
,:'
{ n.["o"t'
calneJ
.-,/
.----.
-1., ff,w
->
-Tb
il
cticnr
*6rrtr.r"os
Adeitt'+
arl"o, ttu
\cvt t
clit*
&tnmawcartn
erde kh^nl'V1
tl"
#fax
6{
L^rot*
ntndara
.fl, Qn'u
&"nv"u* ctll
and
ffi otall
V
Yecsccqe
lvle
-ct-fiIl"LgAestO
44.YYQ
'(!f'c*
sire
r,.r/
ss
ar
sla }(,
@)
rftv-1
I tatS I
f"
e
r+l
lt0
@)-
1t|)$ con? ,/
'l/
Poto..le
'
-_'
(l
:.
ErBtoniilfrp
: ^:'l
(t{eeto6e
ms9
J1-
t\!
>(t
P
A^
clieft
side
A4*1. Yol4oql
+,t
-ti
,-'vnmw-
cctH oq
b\\
c'r'03
ls[w
trrst
S.rw,,
U[r,. 6lterx
fq,glicah
t,
(idC
an,l rar*lt,ple
urre
spiy:,a
gmtL.t
!\
suve,!
'
allusogehudu !
clrcnt&0
Kr,sl,rr 4
la*llonu^ts
-fie
9*
inplemunr)
cn 4
Cui,LftN'ft
,M
Artn&n
crn
fles<"yFoule
daLsnbt EL,e
)r:6i. coi*
der;yVu|'t<'rn
ftts;r;q oP ^d;{6:r^a- J-
d^t d a
irs
Wlct<n&
lofltL
a6"'lnLxi*ts b6i'"
('tt*\
6{ -/lTlicallen
u'1n^ [o|ics
Lttstlnt-v<
4A-@
lioVo,,
oLw
.liw,t a-vrJ
DAo :
it
Jnts on d*ryu"A
ktatn"*l Pctt(i&ata
I^g\"-'a* D*O dut'6n pr#cnn ' it k a Jd'Da(:\u's i flot
tt'X rP
pror.,;.{ce hu;nt
and
t*
d**V
ortu l"6t.s Q Ae qttt"ttn
94",'41\n1-
Lo&"
aA Sl*,an
^oul
A ,a^pl \,,|",-uu
+"-
--fit.'roll^'
Clc-t<
D'ro
1" Ju'o"6lo6rcz
Conlaln 9
L06,, n
e(ia"tt?311
Loft,,t lo
,Jease
bT.
NarEi
J,
'->
cne-
YJ&
A:nvelt cn
4^"
Connctl4
+1,.e
k P'k'
CDED
fe. tanlarc
l16;'s
'
on
apuahont
""irl^*
^"
in Dlro Ll^A
Tetft\ttN4'l'
We ar 9u f5rld<t
DAO clc'x
Pe-ca4
tot)
u\2 a'n{
""'atriple
Drto clatt<
fo*lslznge
WIrcU'y
plrcnEisn
o?
DAo ,Farl,t"1
+L"
) Wkrhr fiL;cl" ccolann!'
oL;t;ry
6 ft
yuN"-t^X
Ao*",UUe
(ane
e[,"
SleC h
pc.r9,*amce Olret:rFlens
Cm
ynrLtlnlE
Jct ,Le,Se
(okrlc.tq9 .
(\.,btic ctass
llgDAOPacrurg
llr"nn nnerl,od
P.rDtc sl.*ic DAO ge*D/0 (Sitrng t'a-e
'"1
Kirrrn
))
OT4ceDAb
[);
( frgSlr "))
(rr.rne'coilrars
else iP
"
. .rer.,'n XXfurDAo();
el \e
?j,(^rh
ct4i5
6b5hc.tlr
n&t
./
DA0
I
PkbI{
ftrbllc
WIL
PUbl L
Abst{u!-t
vold
(
rrnPeCoinrrcr, crt' ) )
ubst6l.;.t*
vDl
rgn*fotna*rc^t)
6bfia-t*
int
obst{aiJ
lr*
(-'-'-' -) i
upl"rc-I"F2 (-'-, - t -)
insetlnPo
exrcnJg
Orade D A0
{
PUluc
DAO
,aveCw"zutr"C
void
/1to3t.
to ertzr'b\ls lr
Conrrpr'rrm
t-oi rb
ovile dbsl'o
frb\lc
\lo\ d
n.teose$"nn'ctrclnC
t
|1
toXv
pubilc lrLt
in::"tlPa
{_
.l
?uJjc fnt
L
(r
11
flr,6,.
to
'r1dteox
l-, -'
Cgnnet$
tpll. uo*'
-'l
ra \nte* 'rt-tu'l
ulh-r*fot-D
on
rix]-o
Qrr.cle #rte
(-,-, -' -)
qJale v'wX
llt1l'''to
=
lvt
$,2<,rc Faltt'
AL"lo-,
DAo cV-,ts
4a
l1y5lt
ciars lltSqrDno
s
'
purr,
vo i
exnnds DAo
mav e Gnrne
dllnL )
t - --
r,'rr4
Cav'esi c-
Ytfic?l db 6tiJ
'
lutil.
vo{
t' --
rcLeueGnnet{onL
|oX'lc
t
Wlrc iot
t
Dt6ltc
inq'rl',Po
lo'd\c
inr
wlea1
CLo''ntt:.n,''
I
----.-
ko
rd
)nscn'1-
crpl.rcLFo
{
lal;c
- -- -
(-l -, -, -)
It
(tlx
db
t-, - , -,*)
upAa*< *to'<
tto'
F.ct-cttY
DAo F.ctscrry
,'
i3
&*1"
o -ru*
a
cno
nalsrnrnft
\,
c\oJl
O{'B'r DAO
ctort
. -tLis F 'rq
ttlprr.c
is 9t1pl;ci
is
:
obicn
|
ctr'x
,icc
^
DA-o
Tnjarr h ser *l"et
otler+
*l^or Drc clw
*-iY
t6
apu;u4c,.".^
isor
dora +l,ardara
tn rl'e
41ert tc"scA
^
_na
..-a-,^ynk_.
oe
&e
lutlsXt""U
c't"c
f3*,n.,.
-.-_-_--:-'
Problerni-
Pell6ate
Frrs
"*
ineSs Jh Clint
in 9'rwr a{Pt:4hon
di"ecriX
a clrar[ed in .{tr..1
oturLo:mor?ro
Dvelbced bc\oe.{
dt 4
srtuttr
cl
te
ppri
crlr
crn
dq;n
s calls
bus;nat5
o(
6'+ heltit;ttr
'
bdrners
no&E'<cuon'
rf
qJ-r,i tode
Ccm?ctnenK
det* t3
brsnerl tt'erB"l
cltrgs
A-pp
+-,
Clienr
licc.don.
So ,
6 ccH ..ns
oJi
cs to
Or.e tltm
tdl *e L,srntss
in
r\e d*r'\S
ot
B(sl
Disturbi..l ctirnt
+$pl;crrfi ons
ii calte
fn$rol
TO
E*"x
clienl
Ersr.,ecS
Actt<vrc\
lldet
a}{ a!
8a(rirz?s Dl
r0"r<
wlen
9y'^X
t"r)
o?
Betr,"6t"g
ec4t"c.te\
c'$L c"'A$a
'
-[rls iel6,r
trc g.'rrr
clc!19
dtLl
tEsa
is &ued
de,,t\o
ers b ftoi
p ,6,
oy\s
e-t^
d^ir
*tr.q.I,o
trsl
^g JNDe
.tf,.*,.c. &r-
BusrinerJ
Indfe
cto{s
HlEr
fcrs-inat5 Gm fnFarrs
amlicanor)
tha.t- iic.r"osc{
De$eloP
metads
l.arin
nQ,tLoofli mond
|-ri
Ps
vgfurene d P**
"t"
3 logig t0 gdrl'e{ BuJiner5 Gff4'rrotr.r
LrrP?
a"
);
fla$e4
mctr{
og,rnx
Solultmi-
C&ll
Ynusl
AppliccrrlcrrvJ
-j
d^ clc,x
Loorrr j-
PrDblnr:-
rP
B.-rslnevs Deie-6as
Sru.rs
erv ice
rham
S..r, i ce Lo ce]er
'
ct&44
h1
cWryr"t A1plicafims"
ds
SlrngfU-an
j..oa
q*
1-u
ot-ri
rnatlHp)e
GJe
Ne qanrratlq
us d
vJ
Satvtc<
Seivicebcale
Locnte'r tspsoslr"le
kxdrress ltUtafe
to Pccrs
tle
ntm't)l
h
6ad"er
rl
alc.n 3
tai
anA
gi
ycsg6rtslrrtE
.rertr\t6 to
a lclsg
mut
Bksihers
Dl;041 rlals
ldne(s o5!^t
or l"nett vefcence
d,s *t *l *t E^r{es
and
cfiizt] teP{'"^ce an
alplicc,Hon,
cllen+
EusitessDalilcltr.
;aoTl?ontni
b?'ltL')
----
(18'l
(ts6
t!-Dlor();
Jq rbe a|lolt
BL{661n1s5
eeoace
o5je*
b<arct
B, l-o
diagrar"t
rePewncr
[U-
Bt in&catcs
&nyent-,at
Ar ro
;s
6e+Hn?
ctlcr.r
Aro
io|i
cttt-t-s
foro
in
erel..uor,
tk
!D
k".e
'St,eF.' .tt-
u(e. q
,41p l,'callcrn
&
Bctsstne* terlodf,'
Ctieni Applttation
Lrrre
t Sot,, of
grefr.,i L^l
e,\ecL,# o^n
"rl"
ol
rol"-q* +[.
S.a;te
&1s;ne-<
truf 5, EJB
c,o
;-
..".
5 r,
ct,
F:
sc
.t
,.
le
fts
(5q
5T
2e
-2
12
-a
-e
_s
&J
'r.
0
@
t slo
lo rh dlagv am
e&bm',r5
Fixrn Paxe
As
6 c.",ilftlte'{
he *af asr bX
Aaicn *'tv
tz+
+ft'P
@
h
PmcesS
rhe
waTtesf
@ Auic'nktvle'r
nr;
teiectl
B",e ltem
lrot >
4 sded bo^
Sflut|
'
co"$ 6ut
ono"
];rc
cl
avs
d"';'le
Moncltt!''
'
as txe h^lau
to
Fa'^Beot
..-,
n.X
oqet
'
Atsanctttl
l,3r;:,,,^tr:;':**:::.J^*"-i^'ouy:';::-'ratLiLr{'{ExBb*tv"^r
A-" J"
a no,, i+airtbe 0*h"^
Buf(u
in
f ) &^lPe" 4
atw rasLe
rur
is
ntc
gnre
12Pe1z
tt
'- '
EJQ 6a7np6'^ea*
o't^"
tle
r'c;Jo'rrse n;st<"J
sl,') o? Avpl;to.t;crnsuw't anl
ryt<\
'}*
grvite Lxoi-<n
Buv;vrevtDlu{
\,
+D
-zt'fu*ntc
c^r&
EIB
d a /"t&*;'e< ^e'!'"J4
-' O Se,viteLoulat wssLs #e
*A
csr"ron** *Pa't'^Le
EJR
Lx'r r{or
oA ue
fi<en)
- O Ews',tssDel;pt<- cLd'ts
t cta*'
in
,r"fe'*nrc
.-
B'l&'r
#:':;:
L}:':-::'"'
4',11't- a'l flul"
t Nno't Li't
Pom&u"
g{,oqoq"(@
gaL
#,!e.,r
yn
{1.i'
- @ &uo^^
_
'
ra pxpu&L)
v s'u'4-
U'l U*e
Tu'1qiil('!4
Elg
u'^t4ett
Ut
'* 'u fo
'{8utr
u"
Bu*:,,..xD&3,!
')
e)'eutco
h-n^9*t''
, -.,h. *Le-t-qJ'-lt+o
a') *o^'"'0.,.
-ruut{tu'Ie
*11'tsr alhtu'rc
p^L .ras^tt in
h 4* th
^r*u
?a^6^r."Jr*kr+
-n},od
r us.l +{c
+!",zrecuLr
nn1'';'t
& kn-t-W'oh'-
' g
'e
Bu*tt'jsn
S-6
*'\aXe os
;
to fL k' "
cott''*'
+'ble
lrnt-
Erplicitll
O nvca
't1-
dJb
ca
Dca;6n W+:.{
t1s oP ile
c-
Atr,r'
"J
QnIt
o*o
(9 D'r'o
(Q
imelemerteA
classlv'o ct^-\^
&'ssi"cwDu6't'
@ *""'Lo-t^
F$"itp1"--rrn1 9* r"loe't-- '
jaria
cfa*!,w,*,r*l
(D S,"Mr
@ ftu'a
A'e
DaaT?aJ+r"n
+1elru{
@
'-*"V,*,
tut.; F
4- t0'o oL"'.D';x"Poric'"""
'7n*
O ;;.'ffi;*
n*-*o
P'qic$
ctox
"-
tu
httto'*".u\tr
--,
-kJ, i, *r|^*Q t* k:*ot
F4(ord d.J.r )
"ld,on
tt''"
'.tP<rr
aLove
r6.yn base
+[. &1.
f"l rn
Pgjg! ll-tn
-l,b.to*
or1
fle
'
Pl"n I Zol>
n\
\t
.o
\*'
pro,"Oo*
f0
cteploqee
m;n! Prqject
Q banla't
ala.stS
*
e{
v?
cJg
b!t
oc
^F
i\.J
I
JJ
.9
:^
I
!
-a
.g_,
-1
E \x
v.J
E.
c,
o !l
&.
!_
'5
.c
Ectr
J.
$
.?
e3
!,t
tr
.:.,
cts-
-o
?K
'jartlr)
t,
<.
.4
v
s
6
-ro
\'
6-J
.?-c
It.J
u-
ct
!l
! s-r
FqS
.Y -,o
FE9
tJ-
c- .4
--)
Esy
3
6
?g
&
fj
,:
"fl.
.i
.?
_!
(
{r1 -')
',.rr- i L4
2\ 3
r-{
I
lo
:P
(n
.Dl
iii
3\
.J
.:l
,tt!
s{
$r
tscc
c,
\,J
I
(o
vt
9./
\o
e&
9'a
-I
lc
6t
(l
-s\
rt
+!
-Jt
tl
Yq
ei
cl+5
l-q
o/
o-
e-
\
I
<ic
.q
l\
s^
tE
s$
.J
il?
4:
lc
-!
r.t
-.-
!
d
c-
\ll
e-ll
E\L'
'
.E
ttt
\tl
\!l
3v.
3
.)
i1
-'-e-
'rd
o-g
iig
d
6
..!
aJ
!l
el
dl
ol rE
:-I
ci
qr
:1
a-i
E.,\
EJB 6en06nerLt
Ffir
D ?prDil+
rtne.r6
ave L,,0
cDoJ
s ro
'
dePlqe e
--;,
,*oar'""
lcrlosrA't -lotz t\ 41"^,,'\
sT''
&qrtast
UB
OEn
dr"r
-t;
nna
camP!"ia't
Jomot's\mgJa'"c"in!
in 6l*'f"l'
9'''s
Q*sr
to
\@"trad+l'1a f"rau
'\
ery'*
wwfr
do@
oin
o.d J.."
fornbine \(av
.
g+*d\
$rt'
'F'
h*Pr{/\ocarhP
I'
broose'r
ar
Afl,-alhJ',-
:-
Pi1n
f, f.
Bta +
Eav 9t te 'ond
ec;o 6'rc
jarF;te+qtvSitc+ - - - .,
a*rfue + w,t (;u+. . . - -
B'e
dqtofetnS
FnTst
"
t*l*t
ra*p\ica-rlc'rn'xrnl
51or6fr1P 'toarl
GinP..-'j4'1
-!JDrp"o;.,t\E^rtsr)
60?ti
4"16n - X
:^
ffiF\
/dispttJ'J
*'
-:
Frer&oP'a'{
wl
lrlitrr*
ilvN "
>
- narc
'zclercmpd
Zmod"tE
cP
t W*'
ar'
l31nu cad
ja*
a' u
(^
\tu'' br"viY'i:
Ffl
fFicu
14b>
4lrno0"Ie
Corvrl!"
>
i*r
ejb>
an'Lcth;rn
-l-3 dn'
,-1
1
_ -2
iq
5
6
a
9
10
11
LZ
13
L4
15
&)afLor r 16
rz
o1*,.n"sl
ta<rt&
6;6ple
a8
19
)
rrf.iE l20
\-2
d'
Ffl(
22
23
'24
25
.26
27
28
29
30
31
32
33
34
35
36
app2
hrip:
/ilo<41
Cv
</frameset>
kl
-=*
serach.jsp------
--------
Fc'.-Bc'str Lvit'p
<o/o@taqlib uri="htto://struts,ar,ache.orqltaqs-html,'prefix="html,,o/o>
"http: / /struts.aoache.oro /tads-bean" prefix=',bean" o/o>
<html:form action="F?IgIpe!I" target="f2.'> T>)rl [1!f a)
<96-@!g-S!ib uri =
@ !.*-l{1 t
<bean: message ke-y="1py.161"r
_FteFer:ar
A(}ioa
cla s
5"(-.,e6
[.r
no:,
sj)
</html:form>
xr)
-*(rtro\t-
h,:'liYT1i
G"^rnt4
l"a
a'1+a
js
'I
>J6
**
fram
t'tt\ Le e*b'Fl
,oh"r' h4rhd ls Bv
myfile,properti
btn.cap=Search
http://iava.sun.com./xml/nsliavaee/web-app 2 5.isd'.>
<servlet-name>action</servlet-name>
<serv Iet>
39
40
< servlet-class> org.a pache.struts.action.Actionserviet</servlet-class>
4L
<init-param>
42
< pa ra rn-name> config< / pa ra m-name>
k
43
< pa ra m-value> / WEB-INF/struts-config.xml</ p.."rh-r,il r.>
44
</init-pararh>
45
<load-on-startup>2</load-on-startup>
46
</servlet>
47
48
<servlet-mapping >
49
<servlet-name>action</servlet-name>
50
< url-pattern> *.do< / url-pattern >
36-5\ @
51
< /servlet-mapping >
52
53
< we lcome-f ile-list>
<welcome-file>lq!I!EE</wetcome-fite> (Il
54
< /welco me-file-list>
55
- /."
56
</web-app>
57
e**s (rznh1avttn krc Q"*,aw
58 <!DOCTYPE struts-config PUBLIC
59
"-/ / Apache Software Foundation/ i/ DTD Struts Configuration l.3/ /EN60
"http: / / iaka rta.apache.oro /struts /dtds / struts-confia 1 3.dtd',>
61
62 <struts-config>
<form-beans>
<form-bean name= "sf " type=
</form-bearis>
Ne.,_k'fos
4
li.'tt 6 5
.dn?'tr.'''t 6
66
67
"/
>
<action-ma ppings>
<action na-e= "sf" path="
6A
69
6c
"Sea rchForm
io
cfo
(J
>
Pase 1 of
"
L"[D
@,"
7t
-
72
73
74
75
<
76
--, wr"rt$
R.te
coo B
6,-.r..lic,r1
</struts-config>
il,
79 1;;;;;;;;;,;'";;;.;;.'",:il:H$T;,,?l'----------------------tu-u"',(-r"r<"
irn port org.apache.struti."ction.action"lOO],{n,
go import org,apache.struts.action-Actionr".-rij"".
a1
82 public class SearchForm extends ActionForm
{
private strins jobD;
uo^
fi
f#
lii
*e)
i:3t"=Y.:1i,'3n"l1t;,"".Irl--ro6;.
9(}
strins[]
?1 pubric
92
return jobi
e3l'J'r
94
T-rBr.;
geLrob()
-- {- _r
I
A f-9s
( oJ I e6
L_92
scqr.J
req)
+ohonarehosser.rrr
Scr(rm
r"vcr)
9a
es )
too ----------.
j"va. utit.ArrayListi
191 import
!-p".t javax.servlet.ittp.
1O2
*;
CWw
(c"*nt^fu'a)
1O3 importorg.apache,struts.action.+;
to4
1O5 public class SearchAction extends Action
1()6 Co(Jvert'ade
@overr.ide
/,-:\
6t
Lo7
publicActionFo.ward
;-tri:iii::::,:::::l
exewte(ActionMpping-mapping,
mappins, ActionForm form,
1oa
HrtpservtetReq""=-.
."o".rll.,r1i,. rservletResponse
response)
1o9
throws Exception=:"9.=rActionMappine
{
110
,//read form djta
,
lo$i.r. n%d e111
Sea rch Form_sf= (Search Form
)for.ni -__J Tvfec,rsAy
PJ^IfrvJ,!!?
i;r,u*
ii'o
115
116
strinejobs[]=sdg";"b(;'"','"'",,
3liliil:lll|Iil:il[::il,:T:'.:1i,1;;:"];.,;.";:1o,".",,
,/,/ call B.method
R rr<iha-ch6r---.^
B
usinessDelegate Lr
bd=new
tDii M:j:!.]*:::
-
117
l2o
L2L
L2Z
GX
Hilffi'S
#tr4":#H,*,ft?ffiffi;;;
rn
a."apq
I tll t
zoo
tll:
\:yl y1:
l_:
L?6
127
L28
Il / executel_,_,_,_1
> / / ctass
,'
-( -!!!ve'
131
L32
import javax.naming.*;
,llii
't't.on'T,t:,
?'o,,. "." u.*,..1".r.",
(*'
n
135 private l.laShtable
Hashtable
1,r
i3,
134
rv.tEe
private
cache:->r"mdi$tar
Cachet,T)rom
rnitiatcontfi-ffi
l0'ar
6.N.,r+,j oro(
private static Servicelocator sl=nuJ1.
l4ua6rari-
ute
Stna
{rm
y.+*nr
e or
{u,.
Page2 of 4
v,*orldrrt
Er3
'r
c"*M "*#4Y
try
Cache = new Hashtable( )i
'.44
145
- L46
-lqr. r, ^447
\rae
e+'h"t
^.l Ms
"com.sun_enterprise.naming.SeriallnitContextFactory,.)i
/ tocalhojt:4a4[t,, );
ic=new f nitialContext(ht);
rso
3ffri"il
l.{t'.-ls 1
;J
CD
g-nt'r 9t9\ek")
private servicelocator( I 1l rr"r"r. ccuch*l-trt ( a
139
140
141
-L42
143
ht. put(Context.pROVIDER_URL,,'iiopr /
..r
j/ ltry
xY'
".9p.ll'"13"
1s4
{
rbs
e.printStackTrace( );
156
)
157
)//constructor
1s8
159 / / Faetory rnethid having singleton logic
,
^
-160 public st;tic :servicelocJtor 6"ir-Li"i"iil n A*ta"t er.tha
catch(Exception e)
I re r
,--r I rez
1-
if(sl
( lo) / ros
\J/
L64
res
vtz:
16a
Pzrcs
IL70
lst
lvz
I L73
I11171
lt74
E,.epG/
i",.,,--.ti:Y:*
Y'l ,
if( lcaihe.conta insKey(jndiNime
t=_-_-_-*cache.Put( j
nd iNa me,
, //rl',j
catchaException
e.
e)
-----l
. u" ut
..* Vu,,i&lac^rco"k
J
fl|ryr Jrro+ nz,r,^c i< rtof al){di..Ae
^ , ,
u
*''
snt"
pat
!^t
'ek
ad^F
#*t ,e',d ,rn
*a
I s< ? ble
tc.x d o'r f,r:or "ray're arJ i+ rr
,ig
'x'
printStackTrace ( )i
>
re+
1ss
1a6
ic.lookup(jndiName) ); I
-T gr*,o ti^""t*A:-j kt -.1
loQf {".1-.
+ti $ilrt
182
a\ n:r{
JND1 h^!\e,
/ catch
wt
yin
*t* tt
"rr
)i/,/ getservice( )
1aa >/ lclass -----------E-&n
L-"-r;,*
149
----------Bus i ness Del e gate.java---CLqJ5-''.!!e--------.,.
190 import java. util. *;
191 import com p. Myco m p Re m ote;
L92
193 public class BusinessDelegate
1"94
u$
rar
195
L96
197
199
199
200
co.t
..!
L:^az
ar\
public
t_-
rray List
rr""c
(\,r )
fit2o1
\yL2o2
'
CaAt
reo
rss
= = ng11;
return sl;
),//getLocator(
rzo
II
I
|i
sl=new serviceLocatorO;
r:l I i
{lkllurz;
\J I rze
I179
I
I
203
204
205
296
zbz
Pagie 3
of 4
'nffi.
,.4-\
I
-/^.a
,bji(,-\t'Js\\:/
2og
--------
-- -- - ---- --
---
--
resurt.jsp----d4-q!t-Pt-.--------------
2O9 <%lQEag import = "java-util. +,java.i'nath. *,p 1. EmpBea n " o/o >
27-O
27. L <o/o
212
ArrayListal=(ArrayList)request,getAttribute("result");
213 o/o>
2i4 <center>
.
2tS
<table border width="1ooo/o" bgcolor= "#FFFFFF">
< tr>
2]-6
2t7
<th>EMPNO</th>
21a
<th>ENAME</th>
2L9
<th>JOB< /th>
22O
<th>SAL</th>
22L
< /tr>
222
223 <o/o
224
for(i nt i=O;i<al.sizeO;i++)
22s
,r
226
EmpBean eb= (EmpBean)at.9et(i);
227
BigDecimal bd=new BigDecimal(eb.getsal( ) );
228 o/o>
229
<tr>
23O
<td > < b > < o/o =eb.getEmpnoo o/o></b></td>
23I
<td> < b > < o/o=eb.getEname( ) o/o></b></td>
(td><b><o/o=eb.gelrobo.o/6></b><ftd>
232
233
<td > <b> < o/o = bd.setscale(2,BigDecimal.ROUND_HALF_Up
234
</t-r>
235 <o/o
236)..J
237 o/o>
238 </table>
239 <./centei>
)o/o
><
/b></td>
240
24L
242 <o/o--<o/o@taolib uri= "htto: / / struts.aoache,oro / taqs-html,, prefix= "htmi'. o/o >
243 <o/o@taolib u ri = " http: / / struts.apache,oro /taos-bean" prefix=',bean',o/o >
244 <o/o@oaae import= "java. util, *,p 1. Empgean"o/o>
245
246 <o/o System.out. pri ntln( "In result;jsp,'); o/o >
247
248 <ta bl e border=1>
249 <o/o
25o Arraylist al = (ArrayList)request.getAttribute( "result" );
rerJs fl.e refo.V al+ribtE- \loJtL
251 o/o>
-l
B -wh
;zt!3 . toni",.,otEmpty name="resqtt" scope=,,request,,> ---, cLcr1* o*p"^a*+o v d#L'.t<
254 <tr>
255
<td>ENO</td>
256
<td>ENAME</Id>
257
<td>DESG</td
25a
<td>SALARY</Id>
259 </tr>
cr6 6e f
.
. t
ll.lDnlb rh< I
log;
Aq&ilts 4
260
261
bti. Fc
= "<o/d =alo/o>,, )
tlr rtt^!8 af
<tr>
I - trlrdr al_.rl trrl
ta'6(e c-tl"la{
<td> <bean:write name=,,id1,,property=,,emp no', /></td> f arqd
<td> <bean:write name="id1" property= "enam e" l></td>
262
262
^-263
264
tu,'tti'r.)'l 19:
e",r"lr.,"s"f
]!!
-:,|'267
['o^rts tr\269
if ,
6he t{r.?flf
dg 2
27 o
-E-*&T.,f
-.{r.xL,,t
</tr>
</loSic:iterate
<
<
/ logic: notEmpty>
/table>
--olo
>
Page 4 of 4
a--'
(2)
2
ApPl
.4
5
6
7
package comp;
import java-util.ArrayList;
import javax -eib.Relnote;
10
11
---------------------MyCompRemote---------------------------
*",,,.1;l;;'?I
das PernorBr''ervrl
public
interface
MycompRemote
{
"t=llno-'""".
&{sr;n<r4
l^rcht"'l
"r
E8;t'-1"'t t -
(ftod.l
la'<-;-
t^tatrar"
i---:";;;";;-.-l-li#rs :1 ?tv*v).c^auu*\'
i3
14
^
package comp;
15 importjava.util.ArrayList;
16 importjavax.ejb.Stateless;
17 import p l.ErnpBean; . . r:liho.
l3
20
2L
22
23
24
2s
26
27
28
29{
30
31
32
33
34)
35
"r,.r",""
sb.append("(")i.
string cond=sb.tostri
37
3a
L4O\:?i
4l
42
43
44
45
46
47
48
49
-J
3rttJ
if( i == jobs.length-1)
sb.append( " "'+jobs [i] + ""'),
else
sb.a ppend( " "'+jobs[i] + "',");
36
t.r",
s,rsi*" ^(h"d
jobs) {
public Arraylistqtlgb (strinsl]
system.out.priEEn(;MycompBean:serach(-) method")i
/-lo=]-*
n9 (
lt,,-e- ('curr"'
t/ 'crfn *',
- ,,.., . -,...t-) -t, +j' s,,t q/rana {tre
); r+ 3i"'s rdndlton Y."9a'-f,'{a &'+l T'4A
' fJA
f.'
tu)ER
f*urcnf
q3
r"W llh. no's 5t hD
>rr'""*fq*
>
/ / class
--------------M yoao-.Jses-----
package comp;
import java.sql.*;
import java.util. *;
import p'..EmpBean;
Uildle4"l )
5()
*-\s
6-A
K-/
Paqe 1 of 2
sete!+ .'[fi?]rii'r1,
p,o zyn, i"qe jos in (Lueev','rvwrooe') ana<" \
"n"',
job
System,out.println("In while")t
EmpBean eb=new EmpBean( );
eb.seaEmpno(rs.getlnt( 1));
eb.setEname( rs.getstring(2) );
eb.seudb(rs.9etstrin9(3));
eb.setsal ( rs.getFloat(4) );
al.add(eb);
/ / while
rs.close( );
st.close( );
con.close( );
>/ ltrv
catch(Exception ee)
>
{
)
fa
d
the vr..cb rnolo
4 frS
package p1;
import java.io. *;
1
1
L
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
L
1
1
1
!./hrn N1
J.p
ls1lg
Ef,B a'
Alranaht\
k@rnet
6'\feuk
e-fffealn
-JNDI nqrnl
L^r
Page 2 ot 2
8J7,1
Sunl,trw
inxxkc
^umQ-bt'
ftj
rt
J\th ^ame,
bnyurL^a
I would try to update our site JavaEra.com everyday with various interesting
facts, scenarios and interview questions. Keep visiting regularly.....
Thanks and I wish all the readers all the best in the interviews.
www.JavaEra.com
A Perfect Place for All Java Resources