Computer Science, asked by gaganmanes777, 4 months ago

A string called str contains whitespaces at the left of the string as given.
Str= “ Python program”
5*2=10
Write the command to delete the spaces.

Answers

Answered by riyakushwaha348
0

Answer:

String result = str. trim(); The trim() method will remove both leading and trailing whitespace from a string and return the result.

Similar questions