+ 7

hi everyone, if i want to compare the values of two strings - for example "java" and "aavj"

- and they contain the same letters but in different order, [how do i do this?] thanks for help

25th Apr 2018, 10:14 AM
ABADA S
ABADA S - avatar
2 Respostas
+ 1
EDIT: deleted question correction do you want to know how to compare whether two strings are equal regardless what order their letters are in? here would be a code that does that. https://code.sololearn.com/cjr3eqmJ0nz1/#java
25th Apr 2018, 10:41 AM
Johann Leis
Johann Leis - avatar
+ 3
Hey Johann! Nice code. I would have done the same thing... Euh, could you add a few comments though? I get it but since it is an answer to a question a few comments might help ☺
25th Apr 2018, 11:34 AM
cyk
cyk - avatar