All questions

Intermediate · Java · Strings

Java: check if two strings are anagrams

Commonly asked: Java automation / SDET interview rounds · ~8 min

Write static boolean isAnagram(String a, String b). Ignore case and spaces.

Checking your membership…