Toggle Case of Characters in a String | Explanation and JAVA Code

preview_player
Показать описание

NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the Toggle Case problem using strings and stringbuilders. In this problem,

1. You are given a string that contains only lowercase and uppercase alphabets.
2. You have to toggle the case of every character of the given string.

Рекомендации по теме
Комментарии
Автор

it can be done by adding 32 to UpperChar or subtracting 32 from lowerChar in order to toggle

rhythmjayee
Автор

If you are unable to toggle a sentence, Use nextLine() for taking input. next() will only take the first word if you enter a sentence.

fslrza
Автор

Pls side by side explain c++ code because inbuilt function are diff for both the languages

jasmeenkaur
Автор

Sir In line 17 why we used sb.tostring what is tostring here

pqr.priyanshu
Автор

Sir which software you use for drawing.
It is good for us to visualize or draw problem and algorithms before coding
Please tell us the name of software🙏🏻🙏🏻

_-_.
Автор

Sir, what is the difference between char and Character?

sarthaknikhal