This project reads multiple string pairs from an input file
(input.txt) and checks if they are anagrams.
An anagram means two words/phrases have the same letters, just arranged
differently.
- Reads multiple string pairs from a file using BufferedReader\
- Ignores spaces and is case-insensitive\
- Outputs whether each pair is an anagram or not
The input file (input.txt) should contain pairs of strings separated
by a comma ,.
Talent view, tenal eivw
hello, world
Listen, Silent
java, avaj
-
Compile the program:
javac Anagram.java
-
Run the program:
java Anagram
Talent view and tenal eivw is anagram
hello and world is not anagram
Listen and Silent is anagram
java and avaj is anagram
- Save results into
output.txt\ - Support JSON/CSV input format\
- Add GUI interface for checking words interactively