Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int j=0; j<currentTree.getValue().size(); j++)
- {
- if (currentTree.getValue().get(j).length() == signiture.length())
- {
- if (!matching.contains(currentTree.getValue().get(j)))
- {
- matching.add(currentTree.getValue().get(j));
- }
- }
- else if (currentTree.getValue().get(j).length() > signiture.length())
- {
- if (!matching.contains(currentTree.getValue().get(j)))
- {
- matching.add(currentTree.getValue().get(j).substring(0, signiture.length()));
- }
- }
- }
- return matching;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement