hi everbody as i got a problem and i have no idea the problem that i need to create a cross reference map for a Java source file.
detail show below
it mean that the input to the program is a Java source file. The program will first read each program line and remember the line number. It then picks out each identifier in the line and keep this piece of information (the identifier and the line number) inside a data structure for later generation of the cross-reference map. Finally, the cross-reference map is output. In the cross-reference map, the identifiers should be listed in alphabetical order, and the line numbers on which each identifier appears should be listed in ascending order
and i must use tokenizer, LinkedList, BinarySearchTree, to do it rather than mapping method and i have no idea that how to do it can someone help me please?