This commit is contained in:
2025-07-02 00:07:49 -07:00
commit c208c6b35d
114 changed files with 71862 additions and 0 deletions

14
java/countWords.java Executable file
View File

@ -0,0 +1,14 @@
import java.io.*;
import java.util.*;
public class countWords {
public static void main(String[] args) throws FileNotFoundException {
Scanner fileScanner = new Scanner(new File(args[0]));
int count = 0;
while (fileScanner.hasNext()) {
count++;
String dummy = fileScanner.next();
}
System.out.println(count);
}
}