We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Strings
- Java Anagrams
- Discussions
Java Anagrams
Java Anagrams
Sort by
recency
|
2516 Discussions
|
Please Login in order to post a comment
Very Simple and Easy logic
static boolean isAnagram(String a, String b) { if(a.length()!=b.length()) { return false; }
easy to understand:
For u guys
public class HR080803Frequency { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); sc.close();