I'm a stupid java newbie. My lecturer asked me to write a java programe that read a C++ file(???.cpp) as a text file, then tokenize the content by category, count the sum of tokens. Methods that must use are bufferReader and tokenizer. My lecturer also said that this must use 2 arrays.It is better to programe it woth GUI form. The output should look like below:

keywords Operator Identifier/Sysbol
-------- -------- -----------------
int + [
include - #

Sum of tokens: ??

Could anybody help me how to do the programe? Especially categorising the tokens. A full programe will be highly appreciated.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!