How to use padding instead of using Space .
What is the difference between split and using pad?
Thank you
Joe Wilson
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 3, 2014, 11:13 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 3, 2014, 8:18 PM EDT
hi,
Agree with vulpes, string has two padding methods, PadLeft and PadRight.
this method create a new string that consists of an original string that is padded with trailing /leading character to the specified total length. padding chatater may be any thing. spaces, any alphabat any thing.... this returns string.
Split method of string takes the character or string that indicate which character are tobe used as delimiters. it return array of string / character
hope this will help you.
Joe WilsonRank #631 · 3.8K reputationPosted Apr 18, 2014, 10:17 AM EDT
Joe Wilson
Joe WilsonRank #631 · 3.8K reputationPosted Apr 21, 2014, 5:05 AM EDT