Wednesday, June 19, 2019

How do you reverse any string without using any function

Just loop for strings length in reverse order, use pick each character from last index to first and concatenate into single string

Please add your answer in comment section 

How do you remove all white spaces from a give. String

Use StringTokenizer with default constructor and retrieve and concatenate all the tokens into a single string.

On quora