Matcher not finding overlapping words?

前端 未结 4 452
猫巷女王i
猫巷女王i 2021-01-28 08:05

I\'m trying to take a string:

String s = \"This is a String!\";

And return all 2-word pairs within that string. Namely:

{\"this         


        
4条回答
  •  北海茫月
    2021-01-28 08:35

    Total pair count = Total number of words - 1

    And you already know how to count total number of words.

提交回复
热议问题