OOP_Exp02
OOP_Exp02
AIM To Len
Aays and Strings in Tala.
Paactical questons
I/ make evey Aow and (olmn feve cdd num bes's ok 1's,
fox (int i-o;i<6itt)i
else
6*6 MetLIK
to6( int i=0 i<6 ; +t)
fox (int /=o;jk6ijtt)
visioN Systen Out. [9int ( mettix [iTLJ7);
110111
101 111
1 11 0 1 1
11 101 1
O111
1 1
(tPð.
1) >
visioN
6oi nin
it kegth Ci7. a y j<i=0; Cint fox
itt)i i=o;l<orey
kerg;th int tos(
minCol=
osayto1To]; Element min t
(1+] Resut ("indices
(' ; fginttnSystem.cut
CoT);
:estut erement "Minimum .tut.fhintr Syctem
ayi lemantfindMinE Resutta CJint
displaymin.
Element Fmd
& I
mtLIL]
mein void Stedic Prubeic
MinElenmentE
indes class ublio
ardiramu ensionad tO aindices
in thei and
(ements minimum the
ctusens thet method qeneriC. 2)Witea
Plintn; ovdSyst, em
eetusn me int(UfninElement minß0À ninCot :
elimincting -the
import
dupliccte Values
ala .1til.. Hash Set:
in the fay.
) OLPut, 2)
Minimum element : 1
tndices: (2, 1)
0etput. 3)
1 23 45
System. 0uh. Peintan ErHek elenst fer Aray 2:
visioN
int tenp = otryCmingrder;
anyay[ minnder] = eteyliT:
Entes 10 eemen ts
Ente element ct positb O: 33
ejem cnt t Posi tton 1;22
Entetelement at positt on 2 11
Entee etemet ct Positton 3;55
Entc elemet positton 4 4e
Ete element Ct Positton 5:38
Ente Clement ct
Etee
position 6G6utt
efemenit
EntcA elemet ct
positn8i28at
Entes etement ct positon q : 77
Sord ed Aray :
11 22 38 33 44 55 66 77 88 99
Char ch=Sth. Ch¯t At(i)
{(Cherectet. ISle tter Chj)
Tf( Ch=-a'| ch=-'e | ch =j' |
Ch==o'I ch== y')
VoelComttt
else3
Con sonant Court +t:
7.) Wkte
P&OgsA) thet faompts the 21A to
enteg
`tsuings and displays the luqest
Common rekix th0 StéigS
|mfoxt(aya. itil *
ubtic Class Coumcn frekixfinder i
ubtic Sted ic Void mein (Ztairg J args)
Scuner Sce nen Scanne `ystem. fn:
System out paint ("Ertek the kiast Staing :
Staing St4L = Sc.rext Line):
Syste.04. faino ntex the Serond Sterig :O
visioN
Steing ctA2= sc next line )
OLtpt7)
PubaicCIass PassWotdValidato t
Static void maih Sting [ J auqs)
Scanmek Scanhes( System. in ;
Systen.0t. Print Ente a PassWord::
SAving PasSWord= sc.ne xt Line):
/ChecK password is Valid
if( isVatidl Perssaord Cpass word ))L
Sy stem bt Phinttn va lid passAord.
eIse
Sy5ten.ot psint tn Invalid passiord. );
digit Count = 0;
Check euch chancactes oj the password
fosl chat, ch : Rasskard.toChes Aray ))
if Chanactek is LeHes O; Digtt Ceh))
setuknkalse
if( Chaxact tt. is Digit (ch))L
digitCourt+ +
visiow htuAn digit Count >=2;
Pt.&)
Ente Pesshord : Pesth123
Valid ass Aotd.
11
35
Cun be
- 0pestetims
Charged.
ike append, mset o delete
modity the (ussent Sthing Bukh Object.
Sth.ing Bzu7es is Snchhonized , maKin? it
Exan)ne: Stkirg Bufft Sh= neh Shring 6z{er0:
vision
How (RRte a t)D dimens iond ataay. Instenitte
andl initialize it
I| Deciaution incuntíation and ínitlizetion Df
2D
2. ConcatSStting Sai:
" Concdenates the Specitied Steig to end o7 CuTent Sts