Manipulating string in android -



Manipulating string in android -

in project need manipulate string

example need type of string

string message= "njjjbjhbhkknjbjhvhgcgfxfgxfgxffdfd"; string b="fjhvdshfvdghfgvdgh";

i need if string b's length less message provide space or if b's length grater message find sub string

please help me how can set white space in string

thanks in advance.

you can create white space strings specific length:

new string(new char[length]).replace('\0', ' ');

android string

Comments