You are on page 1of 50

www.tutorial4us.

com

tutorial4us.com
A Perfect Place for All Tutorials Resources

Core Java | Servlet | JSP | JDBC | Struts | Hibernate | Spring


Java Projects | C | C++ | DS | Interview Questions | JavaScript

College Projects | eBooks | Interview Tips | Forums | Java Discussions

For More Tutorials Stuff Visit

www.tutorial4us.com
A Perfect Place for All Tutorials Resources

Design
Patterns
(Natraj Notes)

www.tutorial4us.com

,I

'fr lat | >ot:-

Oesign pa$e'rn '. -

Ith;ch cornes a$ -fest


De$ign filfcr n

dgloj,rrrTy

S a"re

6u.St praoi ceS

-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

a there 6yg Eog+

leorb

n5

l.atita

derign g $e

Geracrqrltr pLITL

+..Kes

+asu +!'(

dadcnc

c,r)

tt

desl I

pla.ce in
dcrtlopeog

pt4'n arJ ahii-Faflcrn"


c"J

1"3 f },"s"

-i

Singie

JdF

fdn java

69'*hroni

Fad-ar

pra.lec

neeJ

irnP)lment rhem talut" J'1"6

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

Fnnt (rmrr o lltr


lnLrncephnt Bfuu
acr

acr'^ tYo \\

e1

value oblcd cle\5

llel()e'l

Crrn06sii

P'rltn

JDro iias

- '"

d es ;

3n

lr;n

'

;za't'lon oP

' [or) pmSronn;"8 Lo"iJ",?e

lass

I *n*l

elf

C*tPtiioo '

wr-@r--!9ry!li-'

xJ $nglet-on jaua

[-aLrort Yoerlod

Absi"au

o?

,rPeciBad rhe

in Java kntt;rcnt*'t'J '


slur
pesl gn plkrns cc.n be impler',evrled rr5 t^t;n1 to"X

Ab gh

6(

$.pr-riry cale arbtte J-.6png slq, Pro,.r'ers by


"s;g pb:, leolrradogies,
f^ '%l -" pvob\ero 6:f pyD.ie.tl' 6/ a?pljcai 6h derxUy*,r

Des)$n f8H,e!n5 a.re

-)

lO

rt "t

----t D5i0h pdrteln av[

-)

frr

soltnhidn

f,.*"tfu sLfui ckt

'

foltgrdtifn laqC-. Der;n

Pr:.fftYn

3 :-

Jnv"lol.os JuriSr,s Sol,'H o', s +- no,j..'^ti',J -t


-> *nior
w6I.ns a( *cl,nolop9 dti lizotjoor .ollt,"e os l"e 1t^nicn -,

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{

'laie hst Sduitns a't4 4'"n o' )

d*,6"J frLk'ns'

tl^.t a!

;obi )

esl

Ab6tYac,r DDo

S,*otn

-P

Java class

!4I:i--

f,nslca/ oP (YEdir,$ rru lhYie

lo.,,"U

6qjecm oP ;hoa cla-n

&$sHn3

hlqb de

merftn

,J

degtc,d,"

rn,u''ple jirns3

@'+

Use

ry:The joua c\al6

the

-,

---. Ahe

f.at
'-

Se.!v

lce

ollcrrs d

k#

fxrrf6

eaqlp-

f+

is

recomende

tro Cl{a.l..

o'd

b.r)< 64at 6" J

singlera

logge* clors

&-"&r.

iavo. clcrls -

fu

c"recl.lt One oqjd

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

l'"tte or,l,J fri al-t

rr.rsr

L* *'in o'. -P*\'r*['J

ho'i"6 rde lu6i' u( $okr-. t".-'"

1e

o-s< otic4t.e.

,ocrlod

og o clos
6611t

I &s

i.e

Tn
"

ilj ;flj:'il

+ j*oclb*" c^) op"'r unt6one


pl""r)'
4)%J nk* St^f,ean l3r'i'

fr\ {crc vtr{es closc orr 4t J'--s +

h" h

6c.po-ble

ft.ro.1 rcrl'".\

C*"h"A odttFs

37eoling

On

J <rol'i

n5

9*t ar od\c.( clcds

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 :

-paxern , &r6h.!rr4 (a;vat

)'

),'

t
,-z

llstttic
lllblic

\v.

{-aC."g nerlloJ
S

lali

$r.st

crqg( )

llow c*"a"n lo)t^6 9a6lrr,,

l'4;c

iPIn==n,,11;

=h.!t)

STe*tt )

\v

a <ftJurrl
J l/clas

'

\-'

prblic c-lcnq f,;ngreronTes f


L
P

s vrn f Sw,nlU o'rs )

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()

Stest t+ = ( Sresr) t3. ctone();


n+tu
S.o,n ( L', oL,
\--l5-r

-- ir.r./a c
7 jr*o
\'J

inglr

Stn1ll.

L0on lest 'iau^

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

(Jse fatrrrg nerld / ro.r.5

6f

yrrtfiod

c5

javrr clt

orlrer cltss ohject

is

r) Srotic

frcJor5 rubo

er"-O"r

cra$e

oirh tbe tt*ods o,

n3

Lcsr

DJ^ rle

3n

S;.,cbnai rx

P;ne.l r.rrlrods

6( n-r

S"61u

rnrrfr$read;n3

-.

icroa

Sr"g)er.- iooa clas<

d-s*\ vaust Ie

'

la Lcm

urrr}'

'Pr^iu;

ut5 ar:d

Corst'c.chnJ anJ etep'r"in

05 taclrrl

CottPd

cbi4r

afdgn3

.'e<

r';tlcos

..,

Utrt

i'e ' gr,ltr,Ole

lte,e a'e koo rgrr5 6( t"cn 9

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

6-- fra35'.fi:oNa-. I Test-1;

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

i5 o$er "P yt'F""-

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

jdla ctc'vl a*s;de al ts cLaN ) l'\t


io'a cJa+sce'
ar\o vkfut ,Lr. dcuX;I S^Xlu--

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^

it ig not crt.''Jt't 'lois

$rc'\dcr rtass (aSshacl

probrjf.t

"f .16"1

**r. / e**f po* t

p*I}-

-)

\kcJ- rkn fia'e i$ a pss;5;ltt'J

siogle

olule

c &.i.r"1 *rma

ab

ile

a.jg dt't

chans iS olso tht,e

rrrorrrg he 6h$

i-

jaraclc.ss-

orr o"rne ttL.is poblem ir i5 rczorntnded tD

@) F".*t

2!:lYV

o ple-dg bed Jdk terl Slngle fon

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

bj t6f"g e.lsrln$ oti d*a atA belollio<"'r

"U,iect

e.i*rn its oan

GdYr {Jtrr n

c\pat gilr'n

by &,tn ,*.a

c,b.rs

ohictr

rarrty+s cetw,

2,frd'ds *lxttn; n-6

(-s,

Vrr-eNl

enen1

otk,

clc"rs

lytc

o4rts-(

*ren usc

Dosl-6rrf

ohlG ta') 6*cbx a8+

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

sb-- oero Sr""gB,ee.

5b' ofrcnd (-

[gung6"?Ft

c&i

[o,e),. /f t"rr

rrxrbo d '

-*ft me (tdnX"lar:

\)aPt1 )

tl

s3

n',eficd

oero 6rcn6BuPf.' ('h"llD" ):

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^

la{J ft(rL int q',

+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

\' o '*lA (&

ftja'*\ ^r.'";;'il 4- "*


"LW (r*"

0t inm;*(c

IL$uc Vdid d;tpr)

"

'n&hL

&,e*r dbj&f b"t

dsd' i<

* oW

tgric Void "nafgD,rac;

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

pl&\;c claL6 nddblcl;\r

,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)

t:fit l''l*^ r*r^':'lF

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

be crtoled *tli pirr

Srrir5 cnnorant

cldsses
ruhuble

'IO deubPe

3U4 "*de l.J

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

t'o *tjs oh1ecls a'Eib6i

i i l-Y

need d

as
dil'crD

aval table

'

gs

c1"!5
v
irnrxr rarblt

'

rl-r5 aYe

classes '

ttsc" - dehne

c-o\,rr, &..fa nodi

pot rhe

kioJ o?

, cl&!9 rrust L ft not C lc'sS '


,l ffi hr rjari ouleS rn srbe
-)

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.

Pt;uoIt/ bmoS b"

//C*tw'"ro'

tlrc'b z

clarscs

o.'.

vtot- I'nlntrtaltq

ela

S6."-r,er"rjB. llk,, x,,rcnar eLu-st.+

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

'

"^'1rl,,i--Li1- .ArqDr^ 1;",


{"

tctu.{n hed

'Ie5J

(6' b

'

p4rir 16y rod{iA (r^r "-)


{'**ln
rreld Tlt (althis'b);

.'-,

ptu.

rest

trtotn

rno&fuS
Y)c,^'

<o 'P 1"a=

ol

Iell (rhis'a' I ))

,*n rY tft,
{

dll'

d/sP( )
,'

*o*'5= " t.b),'

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

iata :;trntt-roAe '

arls)

t"-

/l >

lYnrn(k61e1f s t

Fr5ti6 las6
c

cl

1 !,11"t +tr.h,ib cod<())i


obi [":ht
s'D't'L" 5rtr- 'J istL) '
L'A:sr L)l

/'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

bezinj rrrrbod rrorrps

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--

9FY FasrLine Rea&'r '.-

oRv\ sl-s

6^*--,"t'o"u

pccess X^^c

ll;re

l'ru'nort)

> ll

.-)

d'

Eur i8 cdlrr o,r1 o"e

W"rtW.

culrs l{

lhe +&sl.

&riirn S"uret slnurd c2lt oI' 6i5 lq roerhocts &"etrt Lo)


Cwn9t61y

'\

or3' ot!.che . S6c.ts . 6ricrr,. @atPoceosc,t .c-lc"'s

meb"dS in a qlrnce tb

-J

cn\t cne rne,rbd needS to be colr bcornplere t&slc '

The pyocers .ntl,.,d

.\--)
)
,,--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

\-/

logc ;n ac'v sr"al\;

oPn tf(I]s J
fl'e pe&""ance }ecarse /tere

gale a{p6 -q deXo"de


lTic deu"lqw*
co''l medrtrro
PQd6sff,','
r{p
to cc'"net#
infanat\ Se"erare jduc aede
slo, >

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
,,

hlrin jdbc 6otr.

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

lL'irh the ohjeLl

need

[rr)

s]$crt

ePa,fo

cteo-hL

bj .hrt"1 nrth"A ecie*


and t"l<t'n"l

cl&ss nortres

rhe

e.\thd Fra,n &rrroun clals

cbskdoic.n r'e&n s hiarng

o{oett

b inlercrf-

Scale c4pliaorianS

and tn &..rn

rJSe obotadcl fau*"tr 6'orrc'n tpluch ;o

'intt^r.ftre

-,,,

Srmll

Jtog rhe impltrntrialic'4

t,hrte

- !a*

\.-,,

h;

rhe

iq (r r

irnp{evrrenloltcn

dbre venlvinX anJ utiti zin3 ttse

of

o\ie.rS.

rlose

grirtnsicn

DP

Nt'n*1 gn.."

'

6bstraat clar '

eb6fo4t

'&tr'x l"*t 'ttt

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

cleslgned portcro '

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

"ccro' obj eoithou'h )( P05;ng 66 d


hL,re uf,are ooo,b,nl Loirh idbc

(-'- '- )
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

Lu-l. 6l"swa* &'amj


'srtr;ng

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

(' resir ").

&

[tr'5llc Vo;d
S.c' P

/4r

z( )

I x/. 69 Test] ' ):

? 1f.",

;'nnl*ne*raf

Clats -Jbst?,

..n

cl6.?-s

irplcn're'r-l

S +tsc

?&b\ic

-las+at )

t ".p I reva');

iic Vcid xYz()


{
e o.pf" xyr 4 fesrL"),'

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'

2lauac -AL"r*'*frtt"7T"'tZiott^ -*tn"*t-c'*\ aiL

>J*uo

lJ6,':;a^1

*-tb"'&-d.\

& *lu^ ;^{.".orrPr[!g:

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

a'<eoutd 1,,'tn6 oblttt

'

''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
"

c**d h, ctoc,-^t^'6 (* +rf


-=7 icort-^6

s ^'tk^, L't' **t,7

orrl ;;
lr

i/
Che

O:.)-,
oV eoi'u^'UN&'*a a't In)+;^L

,,{

?*+o\r'

Clo'rc.Ule lest' java

s Dlrno innplemeni6 java'lar6'

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

"pdlic closs Clo,cdbleTes t

'

P5

vm(srtrqtl

l,rn^* D,rr obs:<a

c.r911i{rnos

E<cg*tonl

Doilo*I, = n,^'D-o (to, "t'1


'd1
n
Sc, p thoskcr,dc ; r Jr . h.sht de C)}
"

d r. drspc) ;

/r*.P.-

D*o

4"

,t-n
ue(&m")a,'

f .".eL" J= l^o^lc"ae

ryCl*a

[]

; ' +dz. [*tGl.c))7

d", Jirpcr;

\ I*"

I lL"^

hdrk^?

p,le6

>

At$s > Dertrt ltorlcrn

*"

ll

t'"" ()uullel<xr
lcrnJuved

t6

rrryrrsr cUlrr| cgrri on

rle

o\p+ omriao thvotrSlr

'
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

-' F ohkYre> io-oat (lo"eolL;rar -';1* -'-''

Ct^e'''bleTe*' Y''^

ll
.-z

>

Dest'nral,zorr

47LvP3

on {a

arornauhx

ctrFd

-1?r tdored

1o&n* ofi<rn

on

grotorgne peslgned puton

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'...*

!,rra.' J.r,4n fdcrn ' uoliol

*,

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

tF"( as neeJ'J ' -76'

'

&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

lcJ! f,"oa' BuiJcn


{
,*"' lni

\'

.olcPtscrL)

t ,rt,r*
;r-*+ern fo6ic
norri hegt)' gnte(J + rtr^t
Yrn

Ddnui)'f'crt)

'

mubple inLoi&'"J o{t'+sJy

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

ft' 4. ^^L Pi'e is "+vat )'

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,

inplz*un\$a 4.n -uLl 'q

;, ,tf inl.rz<kl to yr"vld'


at nqtl nt+Ld Aekar:'n

'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

c'n<l ymvid< nalt mcsl.oJ

"'-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"

A s et' ,1t l;(F net< in"t- f-cz


{*

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

uni M*ptt clntsu.)n ,rr Pwig< '. ,.*u

,-*Alg::

?L des/gns Arr speuAcad.,n ff t&e pxiex ),-,n3 #,'ffi'AJ;:1J-"


flts ywtttt 13( urcq alerrcrl- clc^y.5 !'lfli es bfl r,r lr'c arrA 6<..ide|t^o o^A
IrrD $rame"{
"
pe r.rre9 l",lr, &ace s fo Eqoh o"l;1 ,rt"s{-at^"I &16-.^+'-'").
yw\* \ac'- ") fu Vn l' G^f^'l+ lu'''
fr,-^n w.f(ro \(i-rY' \Ti,,^e! &D- qre.i(;cc'l''o Lllte ]t'/

Ac':t'( rl-'t f"i;" J"i*o c^) 6'nr<a'"a)' t -rk'


)a
.P'*
^nA brL)l;ftt
Lc *"J!t:"",*?"
&atl'tJ
ot't
utl^
t'+c'{o'-s
a^J
o-l
i
*,,, * *U *f-8
""ler
Y*'o
J"'"t'7;O
j^g ..-lo
LoiLt Le 1a-v<"1 ' -L;1"
Uny"**
t6*"t
't'n*"u
,l-t" Aa''he;'1 oAoyv
'rutes

-,

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{

DaraSk rtl'e t"

.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

moo^el i't<r (oo": c'n


A^

wr\ '

= w7 od;,.V )"t:o clw

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

03L non-<;nc}'vowx dufo Cftt"f"""

jl

6o.-.

r.,"c 1r"t",.6

{o

px

&"',r

-,,11-o",er<.s

Qr^lq*.*ttu*

l;pe *r7l;'+,h\-rlw -+d L*"" ro'4*-"n'e'

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

r&t &6 f" -4'"t6 Lt f

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.+

E ,,1, e {.-",.r "P

dr,.rl6

h z*I

s'^ - (Lp;'eA clt"\


uulz t',tulr;el" obj"n h UVs-'Jk'*J
e'le''r'1J't< 4 h\L'
t
''
^t l"'n It: mul't-p')u
oLjetrt
aA) 1Les"
\, Called c'g \/r, rlan tIOro "1"'l

(*[;";

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

iqiltnu,^ls iav ' io ' S*oA'*t"

EnpBe"n

inr no;
Fuok S-"J nam? ,
f-!oJ. Q.* SG{;
P{ivat'e

/J

ll

*'*

QtXxx[-) o.J q.rQX*"t-

ud,,

J-d

c,rtr Pes.ttG+ oqn

pssgllSet t's -- 5t . e"ecure0uevy f' stttr.t *

lrraglisr al: n trD


r.oh

te, [ts'

t"

/l

/V"1L;sr

et cJ., +trv,

f,op0er,n

F<rr'\ mPlolee

tl;

tb

: nu,l

I-o ore btgBean abj


En^fB.a,n

eb. sttNo (rs,Xttlnt6)) i

eb.

au''\ +" h"'lU'r

next( I )

c.r5

rb.

) ,'tl"tt

Srt\\rlns (65. gerSrrrng (>l) I

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'

t< "fro c'L,a

,. n..i-n rmp{c,,'r^f, ^k'-

d-

l^t

also ldo'^f, *o -*
's5'
i'
S,-itterl;

-A**L;.. dt,v,r*t t'Y;'

ant 3rn3[e 6i5 v.r|"e

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

JcA,e *k;' c\''x+

Fwlarat<S Can

i\ot<

E"o*r(o
..=-.---

do:v,ct

o^e

,.fuwu\ clauu

P-"\

-t''"'' S"*d'

tuel

hLt tl,, tet'ttAtt;1

'

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.

cl"u 1/"' -'['

:-

flr,*rlos"

)._/

D*r5"P"ttt"

p'S\e.";- D'xl"pt-X
LJ
:==:

*I

o' ct"r't

J wke nttu'1 ''tl' ,9f""'t ' Wnal'


-11,ir i,nlltmrfall cn is wot *t1'li "
L::t )"ra 6lr.*!ray
&w;rt *'ru'"n

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* ( si'o-1lJ -rt ) *o'^'

**u'o

it*

\r

ves

gc'

sL--v\e'n

9*"^wP'/L\:

(ro'z'")
= cc's'm

slnaQetutt

| '.l) l

Ft"fJ;ra- J^'-'*t FeAswtO;


,^-- %.<.r'(to,-)'

-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

b"u"p o{ rt,aurte i<

tt-

6el;ni ;rs &,,&* -,

!@* h Se.o,chi^1 1^ *rr- uTli\ x ca-tted a.t D*e"t t ,^f . j,.,


h.^l-,r
l",tf*f $e Pr.* I^ t,
Id fh" va.!.ne gnplitriS b.kne vhti?;\ fl"r,"_.
W er,^Je"rf fl*s l',e+t"tra.l .,1 ,A^ L" Jr^,or,Js _l-_ ,,
lte hs',l

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*

undortalin3 grt,"' I OrJo),.t'o' ' ' '


--, m Dqurbe,*1Jrjct'c.n
,6h" ^ru*"q need drnt n*Aar,n *, fime lo frtrk.d

u"G

-.

g-

'

"

F,6hu
rh'"

7lp

to' J

y6luel n W'

,t"tues

\'nfiz'uze tl'e obiY*


L.r'rl JUn eteu"rs constua'tz:tc cultaYtart;o&3 1a

o\y

tt

ts

.'',,'J4, lP'.- 'lLt,a,t Aa*S"'lu m;vts '&^lnr' n 1u^ue*n


;=-=

F@;

-fhe

Mt

9et+t',Cant"tz't d'A furc'l.r'eSnu;'os


*",t^z G,tkql,trt p".kr,l;s

==-0'0
4 'ke @^
- it
u obie*
:*-l\" @tI ohlu* ls

11"iuo.!-;u
iHa.L u

6tcuye-d

+[,"u4L co^'t"tfur ues"x]on c'*'et u *L


tn'-{

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

-/

Flg rc.'gh* p.fkrn

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,,

9ol ut1c,o ,"-

gx+rinsJc

infytn

ryY"^;

D).rn yocr 6rea-br rnurr;ple ode*ts

ic

f,a1a, tuPanren JaI

edf:r'/.

4. o ch's Lttnt drffcttlr

--)c"t rn"^
Vcheg

ee-<

6Hll

lihj cf '\o1-1rng $me Shrne , cornrna\ d"r..lvofu"es in Glttd h faDFttE


off- tkne rnrr,lHple oqje*5 . InsFcad o$eu- tlrroL ah:u-S allocarlnl &rnmcn *^ttJ
thtre

is

cr

q:stibi

anJ uSlnll *tnrc!-fu'Le O6wa,


-rhe Ct.nen A^+-

-)

rnt,lHele

$.nrtat1 lAe fuo ilrat

obeus cftalLl !t' ^'1"^ is &-tred

Is sW(1

lo eod'' obie*

Yro na''v"ra V&q in


Jofl'oh
oLow
-frr *u

q(hlhslc drjo

yyy;

e+8-

.tu*'A
patk,

(w^

Aou+^

"dt"

Gnct

frlr)nsic duro

cti

) nnd

i^pl cne,n*otl ou,

f,n e*u"nl.

l^

onA

ure

i''

it ir

i!

CdJle

e'L<"A

xl-rln

;"Htd"o
sic

Ja-t.q '

ObJo+ Cctnu un)w

unAu ihhi nsJ( d'to'


'M'X

oLiet

an)

lnjr;n glc Aua \n tunno'1

PlXce,3w
sl'o'eJ elxl oLJ?w fl^*"11.

Dat1a

ayp\;cz^Hun

on ?\ua1t't

pesix'r ?aj+<r{n

'

)<P<n flh't'^ fuyhw^lw,

r)*
o

P.leb leve

lwf-{

Vieco

D4;1n pnxt

",-

flobterD:- Nr}inj

kills . *,e

Kils the

sbl'J t-ia7l

Java cod e C sc{ipt

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"

pur" Cuntenr tqic"{

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

L,u'd coaAed )n etfi be6

n grne hadt' o A 'l*f-

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-

t"^de +{*.ar ou4"*" {-e


)nc

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*

G"tar I i,p pnq t

yn

YftM.5

lvierc DslS; fr}rkn

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

-fmplerneot viuo helpe't 6lss;9n {t}ka

:-

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

>

&'npslic Viao WTh Petttn-

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

.fi-t. t'gt"s alt

fectla-ble

i?i(s )

kon, G",|Norle{ Desrro a'ltt"o


O{djrn'1 iaira clar<es Ao*

ryry
-l.rke $,e

y'

o"

Lli.'t gtilJrat<A hhrrcfesr

.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

Gl,.lt^'. yu"Li q,u^r cuo I rtp f'*To* ^J"'t 4#wilt't

#::,'"["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

all l*r!'*ynr V"'

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'.

ftw (-not i, " *-d"1 xJ r.rrc,'t< W( ar\


g"1,ar' | :r, ,t "- ) *h"t *" a
Qo,Et
Enht a,nl Enir piv,.r t^ rL\ quest d^ot ojrL
FO OAeo q*.|*to*tr" j.on^-r d-

wuIE:-

!;Lon

1',^

fiLL

olrt/lahaq

Fn'"'

=;

,luL ,,r"

)^,sa cL,-xcs

rh g,o!t( I'K a$xca!'! on. A'u'S'*tu- )' J*'x

(c*^ri"n-). 3^8"\ wlnvc


eto*er

(-.ro^

c-0*.-, )

Drr*.uoGui.r

co^'*^ (1<'r 9^'t

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!-

Ptonr Cdnmller setvlci

lJsP

Porkr h

cdrh dirzo-org rrurcA url


tdeb

' 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

> Y z/ Satvkr -narne

> +'Jo Llul-

>

patl<trn

4weh't+'t'>

wanrgu " jov a

impott jotax, ScnvICt- "y.


jwax , K.ture+. htl7.+i
imta*lrnPnyruHtc

Ju.tu

'Fl^Terv xtc,ds )\7Qe''tle+

clu\

y*l;c

io.+ )

V6ld

t
Jl6*o,

p;*N'''*

I +v,

(ilwe !*wfuq,exr''Y1,, l+4

?,

--'n's'

g*I)a*

t>)

spafu"rc"rfirt ("1r^"f t'r.,"t" ),'

1,,

reoL/1e|l
,rt-tql

!^"wP^r'"x'*)r1."

lua"as

s'

lnt

if

J,a+

atnl W flt vt4ae* lr affqofrNe lota dal4

=- 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

Te*Z tz-' \\e!D 'Te:rZL);


:r,{tut+

Y.' Lm-Llot'>o)l

llt,'t% +l'," nawtt


pr,o,ftir,rln

('2b", zL)1ht asutt

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

lrlrrce{rdn3 Ftrcl fbe gFgctc,t tDel Yes.crrce

+ f-{tPt5 rte rclucst {

'r.s1r,"1

fi

6ffis,r

Dorc:

r6foO

p'4}goot

ol

1"o.
.,4af.{.-L'Or*6o,

,paf,1.esta1,uce

L
:

prab)ero:- keepinq rhe


Ttl/vnsc ffJrlethLt')
c alr'l
onl Past Ttr/'/r$c
ccr",m.- and
r,et- p'pu",gn'tl7t
r>trcv+)n\lqlL
^^) 6lobr,l
trs-rlAtjr
,.r .,- cooxr6.-,
^ r^Lr,t r)rs-.nar
tr^-^L
----W" in n*\ ,r*n vt)crcsa.rce {r"Ato- 4 aboryaca*a Vitrc r!''e ^re-*aLl n 4 'l.e O,
de.
f;tri'
rurtu:1
'ak& '*&xb'*s*ulu
y
$rykne* rnntal,a,n $u.' Torl
:\J
,---t gnle+ 4,toyr-jro, exj, tt. Cunrron y-r,e-.rw*trp'nd^1 to|+c t1 ,-.
m1cLfi,
.v *;
*WV\ *y'ut .ginirral6 ,^e!ilr<. Carnynan yosrytrfnse V,oraaan t|tc \ W\
r

t}

YaWtL +

6Ste'r 6-L *X6,a-'tx- pr.f to^a

\-/
\-./

f?r) 'ef*s".rS
rod;

!-,u.,r
r,r

?stAnp (tr..8a/.ac o")

lodo-rl

,,=\
i1Aa

*.,,*",*ftuJ---

rl

( 'l

slv-!

:)

q,re

S.'m)

s."rS

Pc(+'Fsrhse

it;'r'-}}{

{odrr.

(,lr) .rfrer6f'

the rncnrt -r?"t'{t

Inl

procrs;"6

Svv

pft.-"t q/LLes'r p'Dcr-t3iht

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"

a tx p1"." r4. jno*inn


y::t:

Frc,rccorrz.,tte'r -Iiaps

&f.'ctprinJ Tjrrc<

rfie ftellelt

-lw.ps

$e,

&nnple -$*vlet TIte{


flg

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

O-r"^^%-,"11' 1"6i" o^A .nc-. - -ord;na,1 jc"vo

$"ufet g,'06'c"ns., Gp

clc.,sses

r-gro-S ooj Jcl)o chr:q

:-

cl&s5

llgF,rtct irrrplernanl

FllaY

{
P{"{blic

Voi d

inir (Fitaconfil f3 )
f/n;r,oti."n.n

I7t'

l>,aic

Void doErx.* (9*r"t?"7,r^7 -g,]il+?.'t...-re'.*, p;taC\ain

t
f/ rn*

-tc1,,^"st pnawn

&' JoF,,* (*r,,t");


- - ll p"s' wfonv
\
wtiL v6ie
t

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',

|+re; 9" *trrrer PF{Ern


2tt..,

oainX

er '

Conrmtttn :-

l.

.rai., lo6;.c

arJ Co"d i"9

d\d.+hd

tn

X+*c+r'6Drr"

Fz,ntC*.'ot r.r

's Ylit

SJ"n,n'.- Da,c,l,v *le[w

'errr.",'),

yncr*s

. lez s

hrrs

de

F,l'o-(9"rroF,* )

-?rr.leri7

"

nutr;(;""Jeo,t

J,, ;v,ktyh,,'d fr* p,X'^- f +;*G,*;"Uc't ,-'1'^n


)*'"d r'1o;^116r.1 6* rb $^ta;uV 4 m"&f,t.,!t-r. --yy,a -11.11,* cW ," ,dU,^6L,r

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,

ze rg'e l3"o "P

+,.&.r conlrot lc^

C"6)

"? fltte' f.w'f t''thL '

n^ clerl ;s A!r* G"''^ttt !- '("

(r".t'Z'x e,,'t:irat^t^* }J*tftde

t^*r.raV\'Lc,l Cwnttu & ,"u"a

p-f'"t-

^"

lron+ (or+bUer

,l'" all.e*t GrlnLF26v

fitaDt'r-t.t-.

\'./

ll])

I"*ffor,"., la6a'-l D*;6n Pa**

*)

0
o,n" I
S

g-:rr

cttn* Arp

cl)qrBfd

JEE

l-.

3 nrqodP h.and.h,JoJ &rq Oel

|r2lYe

-Ar\; aHd'l td{?

_@

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

on. d.,-t'1 tsa^*

?vfu

r,iA
l*'aoC",
Canrav*
W

at 9o*e."9td" *f, *o'^ yefr-tt &"- .UT otrd "dr


Ot[t. iluanu, bny<ne,* ol .lrrrr^
)e-te rle d1rn"rq !..el"'cu tc'"f'rrui:f

"rt*@,

!e\!i.or}.,aa

dc

il

'oJ?^L

Jd,r'., ,b* @ Jiograrn


Sla.Hoo i - 16'&<efun217o^L lounA ltips

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

'tk 1 LU <^f Lratl'<

;t-t<"-z'al''7 afrt'

rn'"d+i

p'lr- Rug

^r-rs

Ct

'nrerrerut

cli.^t afrL'.a$"n lolH\ roi.4 rnutnY'l- K-s'incta Az',qna'+


Jcisl

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-

y'FXnch-ror,e (ornmun) tc,*|c:n

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"

a)6,n) *tYcnrc &nu

t" &nv,Mtrrlaatl0"i.4ft
,:'
{ n.["o"t'

calneJ

.-,/
.----.

J)\ C1)tit 'Sef d'{ (tnr7lt ct

-1., ff,w
->

-Tb

il

cticnr

wy,^est reJ,i-4 *s1'ate

*6rrtr.r"os

Adeitt'+

arl"o, ttu

\cvt t

clit*

)s ln" ta 6ge"tt< naal NJPlelF ai+lottt G,attrtr

,fl'u if r( fuUed ls6'ilt"r'nns

&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,!

'

C;Je tcd"et"sY forla<'

allusogehudu !

clrcnt&0

Kr,sl,rr 4

la*llonu^ts

n rdrt e net odL ^,s^d klps zh


on '
clir,,+ anl kcinevs &m7ew-r'ts , k r l^o+ Camwni cc'J't tn i'< Sy"lur,"oc's Ca"p'uacolt
lt rctd*J &"n
r<1au t unkrt 'e 't(ulf
to, rb clun* ;, Lo, 6 ta;t h
VnuraJ< nsrs

-fie

9*

inplemunr)

grssa Fotc'de les:Xn


1o+k'

cn 4

nrltiple bugntN &rFre^r<.


Solutt

ooi- u,re JMs and l"i DB <,+f,ct tt

Cui,LftN'ft

,M

Artn&n

crn

fles<"yFoule

ftat1em""- |'lix;r5 tr-t, prr<i<l.,nce

daLsnbt EL,e

)r:6i. coi*

der;yVu|'t<'rn

,"refu ftzno i- 2'Lr>3

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

(t* 4*,, geee) i-

DAo :

,h* )oukt e c/a

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

maVe Ce^w,umca-11a7 Llp

+"-

--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

NaTE:- -n dwbp 7c*isranct

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

live fiac,L;k,n"t" \erc


Jr ir

plrcnEisn

o?

DAo ,Farl,t"1

+L"
) Wkrhr fiL;cl" ccolann!'

oL;t;ry

6 ft

c D AO CIc,r OLtctf Lase-J u ,1"" *,to il^"t it


frrprleJ . *lldc i< ure4.,t rnLo-n
p^jert 1rrot, rltrl nl;ple Aat-J"<e so(hto:rg
rcfa'(vr 6

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

if (na-e ' e,1l,al s l'brc'cre

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

//lno cton 4^ osue


cla'rS

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 )

lotri. ru tta-blis I"

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,''

pith l{4s?l Jb e tLo


I

I
----.-

ko

rd

)nscn'1-

crpl.rcLFo

{
lal;c

- -- -

(-l -, -, -)

It

fttud l^to l't{s?l

(tlx

db

t-, - , -,*)

upAa*< *to'<

d i''' \1X61t dit

tto'

F.ct-cttY
DAo F.ctscrry

,'
i3

&*1"
o -ru*
a

cno
nalsrnrnft
\,

c\oJl
O{'B'r DAO

usaj in OS- *cryrrtt-g


>.,rr te

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

'

ttl', l-" '-'aa$0"!s ol

bdrners

no&E'<cuon'

rf

qJ-r,i tode

Ccm?ctnenK

det* t3
brsnerl tt'erB"l

cltrgs
A-pp

+-,

Clienr

licc.don.

So ,

Appri6"6- ln rrin5 ire


AnX rnodi

6 ccH ..ns

oJi

cs to

Or.e tltm

tdl *e L,srntss
in

r\e d*r'\S

ot

B(sl

ness merfiod can l,crPq.m

Disturbi..l ctirnt

+$pl;crrfi ons

ii calte

--,f,rr o,na an61e

fn$rol

TO

E*"x

clienl

Ersr.,ecS

Actt<vrc\

lldet

J *o* ;s no ,prsels -nq 4

a}{ a!

8a(rirz?s Dl

r0"r<

wlen

;ru l"ttT 1"5t. cdilta

9y'^X

Loacx lzTE avnTcnli*'ts

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

fo 9,rutx +le cbt*

*tr.q.I,o

trsl

^g JNDe

.tf,.*,.c. &r-

BusrinerJ

Indfe

cto{s

HlEr

fcrs-inat5 Gm fnFarrs

sg,rers &,nror.cr,r 'ftk-ftl.L?s 4.,r'.r

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

oP *.,vt'r ond to keep thcr atae

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

d,e knn"* nul*,As 4

erv ice

rham

ln $!S- t4ore ddiueriyq \r

S..r, i ce Lo ce]er

'

ct&44

ee vice l_oc..Kt clccy,

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

h cofi &rsi ne4

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

6a+Il.) h." n1r"r7 anJ t*ni"te".J

in

erel..uor,

tk

!D

k".e

'St,eF.' .tt-

u(e. q

,41p l,'callcrn

&

re(*arc ;, qdlc^.e" -!,".

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-<

l*<rtta, Caft il'l

lvlINI koietl- b9 ustng


rnLr\dple Des;6nPa$crng

truf 5, EJB

c,o

JDBC technol o6,r, )ou'ng rhe i -plrrot'.'t."6,'.'

;-

..".

5 r,

ct,

qq

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

luton*nr ter t:su fhe e*ies ol

@
h

PmcesS

rhe

waTtesf

@ Auic'nktvle'r

nr;

teiectl

B",e ltem

lrot >

4 sded bo^

s and 'loYcc 1'la r1azs t

Sflut|

'

co"$ 6ut

ono"

];rc

cl

avs

d"';'le

]at han ao|

Moncltt!''

'

as txe h^lau

to

Fa'^Beot

(O A* .,,.*,ulu- (rttts *e utu'1<L) oP

..-,

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

EJR Carn('u'L,'f '

#:':;:
L}:':-::'"'
4',11't- a'l flul"
t Nno't Li't
Pom&u"

g{,oqoq"(@
gaL

#,!e.,r

yn

{1.i'

- (ts Bu:tintst *oLo) "?

- @ &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'-

@q@ O*\un. (dJ,or ta Resu*,isp


wa.sl^'r'ru'^lt
onr
a
rxe
,,,^
taqtc
lTtc
*) 7as
'* n' ,, br u,,y ynu,rdl.n
il"tnuurrs \u
"

' 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

alov{ lni ett

c-

@?o^e^+ v-isP gvDgram I

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

c*xf v,6 ctda L**"7^'


lt.o
O
^ r^",*-,
o{ &'y""*'vP*cw6 O^^*n*, tnt f-*'c'-->
F*

tt''"

'.tP<rr

aLove

r6.yn base

+[. &1.

f"l rn

Pgjg! ll-tn

-l,b.to*

or1

fle

imfenlta-/t "o oP )erlXoP"*t"'

'

Pl"n I Zol>

n\

\t

.o

\*'

pro,"Oo*

f0

ord xe(lde clesign praiect bc'se '1

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

Ja. 6'reS r.{teSc^f't$

Ffir

14f\ co-pr> jar cP Copi'ja't

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

D4lo9te Wa' anl

Afl,-alhJ',-

:-

Pi1n

= jar ftre +jt^r

f, f.

Bta +

Eav 9t te 'ond

ec;o 6'rc

Gr,".P*!' sttn"n '

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

prq.u'-J eo, {te

-!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:

> ee,Te:t ld-n2 ,, LlesrrdlAh.


Srru,ts

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

h0.sileh lsrux p+t---r O


main-jsp--------- Nel.ome f4e

hrip:

/ilo<41

<frameset r ow s=' 3oo/o,7 Oo/ott >


<frame name="f1" src= "Sea rch"jsp">
<frame name= "f2"/ >

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;select property="job" multiple="yes">


<html;option value="CLERK">CLERKS<,/html:option>
<html:option va lue= "MANAGER"> MANAGERS< / htm l:optio n >
<html;option value="ANALYST">ANALYSTS</html:option>
<htrnl;option value="SALESMAN">SALESMEN</html:option>
.J
</html:select>
<htrrd:submit>
<beanimessage key= "btn.cap"/
</html:submit>

</html:form>

xr)
-*(rtro\t-

h,:'liYT1i
G"^rnt4
l"a
a'1+a

",^ ,"lO .wr6&rc lht&h


l''"' r+e
&"

js

'I

>J6

**
fram

t'tt\ Le e*b'Fl
,oh"r' h4rhd ls Bv

myfile,properti

# To change this template, choose Tools I Templates


# and open the template in the editor.
my.lbl=Select job(s)

btn.cap=Search

<web-app version="2.5" xmlns= "htto I / /iava.sun,com /xml /ns/iavaee'.


xmlns!xsi="http:/ /www.w3.orql2OO1 /XMLSchema-instance.'
xsi:schemaLocatio.t= @

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

?& shurs A<*a, ctar^

cfo

(J

>
Pase 1 of

"

L"[D

@,"
7t
-

<torward name =..success,. path


=,,/ resu lt.islp,, />
</action>
</action-mappings>

72
73
74
75

<

76

message-resources parameter=,.myfile.,/ >

--, 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#

l,.r.r r,,r+rt"- vlr,..i' ."uLt {*


1;r,
fJr
public void reset(ActionMappingmapping,HttpservletRequest

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

pubtic void seuob(String[] job)


this.job = job;

A f-9s
( oJ I e6
L_92

scqr.J

req)

srar.cf lisrtor J,;tnw"vta'4

+ohonarehosser.rrr
Scr(rm

r"vcr)

9a

es )
too ----------.

------sea rchAct;o.,:.iav-a------.--- ____________--&ln

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:!.]*:::
-

);k rjff #d,-rft


!q'rrr'e g,method");
r''meEnoo ');
lr're

117

l2o
L2L
L2Z

GX

Hilffi'S
#tr4":#H,*,ft?ffiffi;;;

rn

a."apq

I tll t

zoo

/ / send result to result page as req


-."
req-uest.setAttri uute1,..e-sui1;,, j;-- attribute
/ trorwatd control to result paqe
returnmapping.fi.ndForwardl,.iuccess,,).

tll:

\:yl y1:
l_:

L?6

127

L28

Il / executel_,_,_,_1
> / / ctass

,'

-( -!!!ve'

.r,..( i*^1,-,-F,r",'a q"*inlnon"Der)Vts?a+tn


129 ___________
--------servicelocator.java-------ll1t-t-:{t-1i-"?- I
13O import java.util.*l
&,,nk"ol t, "4 o't

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

,/,/ jndi properties


Hashtabte ht=new HashtableO;
ht. put( Context.rNITrAL_CONTEXT_FACTORy,

^.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

// Return object from cache


return Cache. get(jnd i N a me );

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

!bg!n3:,,c \tlt\ 5a'nl.,'ncJ

*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$

System.out"println( " ServoceLocator:getservice(_)',)i

rar

195
L96
197
199
199
200

co.t

..!

L:^az

ar\

public

t_-

rray List

rr""c

(\,r )

s".n>-:"!j(9!!ngj"-q[f )throws Exception

fit2o1

\yL2o2

'

CaAt

/ / tnethod having Servicelocator fmpl logic


public Object getService(String jndiNamejthrows Exception

reo

rss

r^L", tt*;o-*le" c^Le"

= = ng11;

return sl;
),//getLocator(

rzo

II
I
|i

sl=new serviceLocatorO;

r:l I i
{lkllurz;
\J I rze
I179
I
I

bn't telarotc,t Co.la'lssne

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

<logic:iterate id="id1" collection

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

<td> <bean:write name="id1" property="job" I > < / td>


<td><bean:write name="id1" property="sal,, / > < / td>

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"

public ArrayList search(String job[]);

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 slsr(s,or'tcx srrst"' &a'n)


:"#J"*o:'t;
public class Mycollq.Bean implements MyCompRemote

"r,.r",""

| / write b.losic tD Ptaore 6s.!lrro nv'hd +4 g|t Yn


StringBuffer sb=new StringBuffero;

sb.append("(")i.

for( int i =oii<jobs.length;i+

ppend( " )" )ii


sb-append(")")
sb-a

string cond=sb.tostri

37

3a

", "r'55 66;1


E*oq3

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

/ / use the persistance logic of DAO clas


ruyoi<5 JJo=.t.w MyDAog;
-- cond ); --.,-Arrayl.ist a I = dao.findEmp !oyees(
return al:
ns +a &'s;,1,aT>t;Pte cloxs '

' 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-/

51 public class MYDAO {


52
53
p u blic ArrayList fi ndEm ployees(Stri n9 cond )
54
55
{
i;|-A t*ir'1 Pc&lstanle- l..6; c
56
57
system.o ut. println( "find Employees(- );MyDAO" );
58
connection con= null;
59
Statement st= null;
60
Resultset rs= nulli
61
62
ArrayList al=new ArrayList( )i
63
64
try
65
66
class.f orName( "oracle.jdbc.driver.oracleDriver")i
67
con= DriverManager.getconnection( "id bc:oracle:thin: @localhost:1,521:satva'r,"scottrr,rrti
6a
st=con.createstatement( );
6s
rs=st,executeQuery("select empno,ename,iob,sal frqm ernp wherc job in "

Paqe 1 of 2
sete!+ .'[fi?]rii'r1,
p,o zyn, i"qe jos in (Lueev','rvwrooe') ana<" \
"n"',

job

+ cond+" order b:. job");


while( rs-next( ) )
{
61(Arrajustfbj )

System,out.println("In while")t
EmpBean eb=new EmpBean( );

ID} TAli .LEPP

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)
>

{
)

System,out.printl n(ee.tostring( ))i

return al: rt rtfs\ns


)77?l-"a-Effitoyees
> / / class

fa

d
the vr..cb rnolo

4 frS

Cor/'l'ctn"r fkt'n cla'u

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

public class EmpBean implements Serializable


*-q"",l'd,J..^j
private int empno;
private String enarnei
private Strinq job;
private float sal;
public int getEmpno( ) {
retiJ rat empno;

public void setEmpno(int emp o) {


this.empno = empno;

public String getEname( ) t


return ename;

public void setEname(String ename) {


this.ename = ename;

1
1
1
L
1

public string getJob( ) {


return jobi

public vaid setJob(string job) {


this.job = job;

1
1

public float getsal( ) {


return sa li

public void setsal(float sal) {


this.sal = sal;

!./hrn N1

J.p

ls1lg

Ef,B a'

Alranaht\

k@rnet

?", d.e o!r*"

6'\feuk

e-fffealn

-JNDI nqrnl

r i'r Crrlorsfi rl La/6 Ab *l,t

L^r

Page 2 ot 2

8J7,1

CDr.p, MdCAr^pVn " t<

Sunl,trw

inxxkc

^umQ-bt'

ftj

c",i,Jl"i'ik*,, +ta+'1s pla"'l n.'(tn #X\n


O6

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

You might also like