So how can I remove a space(s) from an array of a string...
Taking an example, I have a string called list:
String[] list ={"Apple ", "Mel on", " Ice -cream ", Television"};
Can anyone please guide on what methods I should be using?
I've already tried using .replace().