I have worked in a SOAP message to get the LoginToken from a Webservice, and store that LoginToken as a String. U used System.out.println(LoginToken); to print the value. This prints [wdsd34svdf], but I want only wdsd34svdf. How can I remove these square brackets at the start and end of the output?
Example:
String LoginToken=getName().toString();
System.out.println("LoginToken" + LoginToken);
The output is: [wdsd34svdf].
I want just wdsd34svdf
You need to find the index of
[and]thensubstring. (Here[is always at start and]is at end):