Write a function trim() that will take an array of characters as an input and remove multiple consecutive spaces from the array (You cannot use the String class in java)..
Can anyone help me out?
i dont know how to use trim() method in a char array[]..
Thanks..