Compare letters in two string [closed]

-6

The task is to compare two string and take a percentage according to the similarity.

A serious example

String palabra1 = "Hola Mundo";
String palabra2 = "ola mudo"

should show me in console the letters that does not contain word2 with respect to word1 and and show me the percentage according to the letters that it found.

As a clarification the letters should be compared according to the order of word1 since word2 could contain the letters of word1 but disordered.

Thanks for the help

    
asked by Sebastian 14.12.2017 в 14:58
source

0 answers