The assignment is to develop a tool in Java that takes two inputs - the text string and the pattern; and finds all the matches of pattern in the text string.
Simply, we need to print all the indexes where the pattern occurs in the text string.
The assignment is to write a small program that takes a source code file as an input, identifies n1, n2, N1 & N2; and then prints all Halstead's metrics as output.