+ 1

Kotlin

Help me figure out how to implement an application in Kotlin that will have all the extra spaces before or after the comma and other symbols. I also need to understand how to change the " sign to such a sign < or such a sign >. I also want to understand how to implement understanding code so that it understands when it is necessary to leave spaces before a dash and before it, for example: (light-blue, Petya is a person). Please help

12th Sep 2024, 8:34 PM
Норм Пацан
Норм Пацан - avatar
2 Respostas
+ 3
"Help me figure out how to implement an application in Kotlin that will have all the extra spaces before or after the comma and other symbols." What do you mean by "will have all the extra spaces before or after the comma and other symbol"? did you mean to strip off (remove) extra spaces or the opposite, to add space before or after comma and other symbols? and what are the other symbols? punctuations? "I also need to understand how to change the " sign to such a sign < or such a sign >." String replacement perhaps be the subject for you to research upon in order to tackle this task. "I also want to understand how to implement understanding code so that it understands when it is necessary to leave spaces before a dash and before it, for example: (light-blue, Petya is a person)." Conditionals would be the first subject to consider when it comes to decision making. Like in this case, you need to verify whether it is necessary to leave spaces before and after a dash character. If you can, please edit the post Description to add some examples to clarify the goal of the task. It would help those who want to help understand the task more clearly, the goal, and what to suggest more effectively :)
13th Sep 2024, 3:28 AM
Ipang
+ 1
12th Sep 2024, 11:37 PM
Chris Coder
Chris Coder - avatar