I am a novice working with Java and the eclipse IDE. What I want to read words from a text file, store it as a list converting it to some uniform case. Then I input some word/sentence from keyboard and check whether it is present in the file.
Well my reading from file is working fine with BufferedReader and case conversion too is ok and I am displaying file contents.
I tried the following with the substring finding, but somehow my truth flag is forever false.
boolean truth = link [index].contains (name);
where I calculated index
char achar = name.charAt(0);
index = achar - 'a';
where "name" is the string input from key board, ie to be searched and "link" is my original list (text file)
Whats wrong with the truth flag statement?