String ashok= " ,RCOCDP.APR7N2,RCOCDP.APUIP1,RCOCDP.APUIP2";
Can you please help me to get below output
Expected output would like this : String output = "RCOCDP.APR7N2,RCOCDP.APUIP1,RCOCDP.APUIP2";
CodePudding user response:
given the limited provided information:
//remove leading space and comma
String output=ashok.substring(2);
CodePudding user response:
Looks like you need just to remove leading space and comma from the string. There will be different approaches. One simple solution is to slice the string and remove first character.
string ashok= " ,RCOCDP.APR7N2,RCOCDP.APUIP1,RCOCDP.APUIP2";
string output = ashok.Substring(2);
Syntax can be changed according to the Programming Language you are using..