








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









single unit.” String literals are the constants and are of the
form:
“Hello world”“This is a string literal”
instance
represents an instance
of a string. instance.Length – We’ve seen this.instance.CopyTo(sourceIndex, destination,
destinationIndex, count)
instance.CopyTo(sourceIndex, destination,
destinationIndex, count) instance.CopyTo(int,char[],int,int)Copies the characters in the string instance starting at
the sourceindex into the character array destinationbeginning at location destinationindex. The variablecount contains the number of characters to copy.
Extract the substring starting at int and going to the
end.
instance.Substring(int,int)
Extract the substring starting at the first index and
taking the second int number of characters.
implementing regular expressions, to verifythat strings satisfy certain properties. Thetopic of regular expressions is beyond thescope of this course, so we will omit thissection.