In Java, I want to get rid of the leading and trailing brackets in a String.
Given input:
"[ hello, char[]={a,b,c} ... bye ]"
How can I produce the output of
" hello, char[]={a,b,c} ... bye "
only the leading [ and trailing ] is removed… How can I do that in Java?
Prints: