0
Does anyone know how to reverse a character ( not a string )in java or any programming language.
i want to know that in java
3 Respostas
+ 14
what do you mean? Reverse a char like?
I guess you're talking about reversing a string...
+ 5
In c we can reverse any string using reverse function
- 1
to read a generic data type which is assimilable to an array, in Python3, you can use the slicing.
in Python these data types are: strings, lists and tuples
if you want see some examples, you can see my code:
https://code.sololearn.com/cV8doyCj7Q3T/?ref=app
(I had snippets of this code which I ordered to answer at your question ;) )
I have done also a little java main...
https://code.sololearn.com/ctEkRCfjxHyQ/#java