0% found this document useful (0 votes)
6 views3 pages

Java - Strings Methods Notes

The document outlines various string manipulation methods, including functions for finding character indices, converting case, replacing characters, and checking string equality. It also describes methods for trimming whitespace, checking string prefixes and suffixes, and concatenating strings. Additionally, it touches on converting strings to primitive data types.

Uploaded by

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

Java - Strings Methods Notes

The document outlines various string manipulation methods, including functions for finding character indices, converting case, replacing characters, and checking string equality. It also describes methods for trimming whitespace, checking string prefixes and suffixes, and concatenating strings. Additionally, it touches on converting strings to primitive data types.

Uploaded by

manjaleone
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
| aes (-—~ Hlenpapacin | § toring Handtig Page | a baie: / buy Staying Methods : let Rength O) TA pretwon Aen gth = _@sT Tat eger ° |chas ChavAt Cint indes)~ Retwns characten atthe qiven Hinder = Rite = Lraratten dint inderQy Cohay ch)- Returns inde Of character | which occurs first ~ ROT - Integer _ i ind indeaO{ Ccher ch, int slant inden)- Returns inder Character atlieh gifter -the inder qivenby uot | KT. = Int eget * int Lot Inde s0f Cohar ch)- Ret wins the Joceunence of chavatten — @:T— Integer. ee Stering substring (int Start —indea)> Catevact io ret of ii CM arraet en simuttancously (tom a_given indus wp s0_ We en ka Aaatag aceon ees eee : Stang substring Cat start inder, int last index)” | Returns the character {rom the inder upte -the east | .Te = Staring {String LowerCase)- Converts the string into Lourercane charract et, Special chavacte: remai ieee RG Te TS a4 ° | String +o WpperCase O- Converts the stving. i uppercse chbractens, Spetiat chanactur re [et String ce_C char old char, Char neu. ¢ ays aing_ore allt Rephace ach a cCharorte -by another Chonact ey or" neste Sn oy ee Srring! Rt Sirrings * String crephon Cold Sequence Of Chars, New seayence chy Replace @ Sequence 61 cheraters py another sequin 6| chanoctens at eu its occurence =£-1-_String String concat CString 8) = Join +wo strings together RT - Stain boolean equals CString s)- Eneck Af 4wo shrings ave identical or not- &-+ Boolean 1 booteon. equouTanovelore (String S)- Linge fu —__simngs age identical o7 not after i noring the case - ¥:J- bookeon , * iat compoxeTo (String $)- Cheer s “the equity, tee Strrings aoe also checks, usthich string cs eiggen on. sation Te ret urns 6, if the strings aoe same; A. neqosive value é dat string ts Smation and a. positive yale, if 4s Ast t_ttving is. vigget-. R-T =Tnteger et ~int_¢ comporeToTgnore (ase | Lsiving s)- Same as int. —_fomprnelo put Cornjooxes -the 5 cine often i | i {i he Cone - K-T- =Tateg en . — ploneerpoperin —— Page | | Doe: / / Lt Staing Arrim ()- Removes Leading ond Araiting plants a oom oa String. “eT H String a boolean endswith CSteing S)- Cheek whether a string nos . oO specified Suf pit or not, @1- Doorean, boolean StosttsWith (String s)- Check ushekher a string. Be oO Specified poretia Or not +o another String &F- booleag ‘ primisive type voeued (staring ) - Lonvert i into lowimistiv i Clare een tive dabo Hype O1 the Sor eapond, ng Ler ap pet 2: = User defined . t

You might also like