So I'm trying to read the first 100 strings, which are words into an array of 100 Strings. and while doing that I'm trying to set each corresponding integer in an array of integers to 1, so counting each word the first time its read.
It's reading a book, 100 words at a time, and counting those words. So far I have this, how would I just make a switch statement of 100 cases?
Thanks in advance for any help!
package program6;
import java.util.Scanner;
public class Program6 {
static Scanner keyboard = new Scanner(System.in);
static String input;
String[] StringArray = new String[100];
int[] IntArray = new int[100];
String filename = "myths.txt";
String stringnumber;
public static void main(String[] args) {
for (int i = 0; i < 100; i++) {