+ 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
2 Antworten
+ 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
+ 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 ☺