java how to find a specific word in a text file

java how to find a specific word in a text file
/**
 * @author lautturi.com
 * Java example: java search words in text file 
 */

import java.util.*;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;

public class Lautturi {
	
	public static void main(String[] args) throws IOException  {

		String wordToFind="Hello";
		Path path = FileSystems.getDefault().getPath("test.txt");
		List<String> lines=Files.readAllLines(path);
		for(int i=0;i<lines.size();i++){
			int col;
		    if((col=lines.get(i).indexOf(wordToFind))!=-1){
		    	System.out.println("found "+wordToFind+" in line "+i+" at column "+col);
		    }
		}
	}
	
}
‮w:ecruoS‬ww.lautturi.com

output:

found Hello in line 0 at column 0
found Hello in line 2 at column 3
Created Time:2017-09-11 16:03:29  Author:lautturi