public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
java.io.File file = new java.io.File(filepath);
Scanner input = new Scanner(file);
while(input.hasNextLine()){
String[] s = input.next().split(" ");
for (int i = 0; i < s.length; i++) {
if(s[i].equals("John"))
s[i] = " ";
System.out.print(s[i] + " ");
}
}
input.close();
}
}