diff --git a/Anagram.java b/Anagram.java new file mode 100644 index 0000000..196ae59 --- /dev/null +++ b/Anagram.java @@ -0,0 +1,39 @@ +import java.util.Scanner; + +public class Anagram { + + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + + String a = sc.nextLine(); + String b = sc.nextLine(); + boolean isAnagram = false; + boolean visited[] = new boolean[b.length()]; + if(a.length() == b.length()) { + + for(int i=0; i