Comment trouver un mot spécifique dans un fichier texte en java

String wordToFind="Hello";
List<String> lines=Files.readAllLines(Path.of("yourFile.txt"));
for(int i=0;i<lines.size();i++){
	int col;
    while((col=lines.indexOf(wordToFind))!=-1){
    	System.out.println("found "+wordToFind+" in line "+i+" at column "+col);
    }
}
dan1st