i posted this on a different forum, but it's probably more appropriate here:
I have a short project...basically, I have a HashMap with several words in it. I also have a input html file with some text in it.
My project is that I have to make a new file...which has the same contents has the input file, BUT if any of the words from the Map shows up in the inputfile, I have to make those words hyperlinks.
For example, if the word "computer" is in the hashmap...and "The computer has 128 megs of RAM" is in the input.html file...i would create a new html file that says "The computer has 128 megs of RAM" -- BUT here 'computer' would be a hyperlink. (Thus, in the end, I would have a new HTML file which would have links to all words in the hashmap.)
I realllllllllllly need help here. I bet to many of you this is a simple problem!
( In the hashmap the key is the word, and the value is the hyperlink code. )
-Jin
jinen@hiphopsite.com
I have a short project...basically, I have a HashMap with several words in it. I also have a input html file with some text in it.
My project is that I have to make a new file...which has the same contents has the input file, BUT if any of the words from the Map shows up in the inputfile, I have to make those words hyperlinks.
For example, if the word "computer" is in the hashmap...and "The computer has 128 megs of RAM" is in the input.html file...i would create a new html file that says "The computer has 128 megs of RAM" -- BUT here 'computer' would be a hyperlink. (Thus, in the end, I would have a new HTML file which would have links to all words in the hashmap.)
I realllllllllllly need help here. I bet to many of you this is a simple problem!
( In the hashmap the key is the word, and the value is the hyperlink code. )
-Jin
jinen@hiphopsite.com