Java: Java Programming For Beginners a simple Start To Java Programming (Written By a software Engineer)


Download 0.82 Mb.
Pdf ko'rish
bet44/95
Sana09.01.2022
Hajmi0.82 Mb.
#261112
1   ...   40   41   42   43   44   45   46   47   ...   95
Bog'liq
Java Programming For Beginners - A Simple Start to Java Programming ( PDFDrive )

Substitution Methods:


Substitution methods are valuable methods for supplanting content in a data string:
public static String quotereplacement(string mystr)
Gives  back  an  exacting  substitution  String  for  the  tagged  String.  This  method
creates  a  String  that  will  function  as  an  issue  substitution  s  in  the
appendreplacement system for the Matcher class.
public Stringbuffer appendtail(stringbuffer strbuff)
Actualizes a terminal annex and-supplant step.
public Matcher appendreplacement(stringbuffer strbuff, String strsubstitution)
Actualizes a non-terminal annex and-supplant step.
public String replacefirst(string strsubstitution)
Replaces  the  first  subsequence  of  the  data  succession  that  matches  the  example
with the given substitution string.
public String replaceall(string strsubstitution)
Replaces each subsequence of the data succession that matches the example with
the given substitution string.

Download 0.82 Mb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   ...   95




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling