0
Please help
So according to the "Secret message" quiz. I have to inverse the input of the user (input:String) I made the code but for some reason the output appears to be wrong in the results section. although I tried it in the code playground and it worked well. My code works by comparing each letter with an array of all the alphas. Once it finds a match, it takes the index of the alphabet and takes its inverse from another alphabets array that is inverted from the first one. https://code.sololearn.com/cf2u82OrNyxB/?ref=app
11 Respuestas
+ 6
https://code.sololearn.com/cLJtS71Vf03z/?ref=app
+ 6
Instead of using arrays you can go with collections that maybe helpful to solve this kind of problem !! !! !!
+ 2
Tibor Santa how haven't i noticed that haha thank you
+ 1
You should convert the input to lowercase characters first. Capitals are not mapped.
String input=sc.nextLine().toLowerCase();
+ 1
Then also just covert lover case. You will get it...
+ 1
Jayakrishna yeah I just didn't notice that 😅
+ 1
0_0 Mägár Sám Äkà Nüllpøïntêr Èxëcéptïön Its been time i have'nt coded anything and i'm trying to do some small codes here and there to refresh my memory haha
0
In which case, it is failing? It seems giving the correct output..
0
Its failing the second case Jayakrishna
0
Is this code for code coach problem reverse string?
0
Jayakrishna Yes