Computer Science, asked by sunildas9447240162, 5 months ago

Did the spaces remain same while reversing a string in library classes in java​

Answers

Answered by Anonymous
2

Answer:

Create a string to store result. Mark the space position of the given string in this string.

Insert the character from input string into the result string in reverse order.

while inserting the character check if the result string already contains a space at index ‘j’ or not. If it contains, we copy the character to the next position.

Explanation:

BUDDY I AM ALSO LEARNING JAVA AND PYTHON

Answered by udhammalik
1

Answer:

Bhai see on Google and pleas follow me

Similar questions