Need help!

I am doing a profanity checking application that will check every sentences or fragment user had entered. When the program encounter offending word it will replace the user input with string "PROFANIY".

I have problem with "case insensitive " I know that java is case sensitive but how do you make it to case insensitive for this program.

Also, how you make program to handle punctuations in a sentecne such as commas, semicolon, periods, exclamations marks, ampersand , perentheses, and double quotes, apsotrophe for this program.

Here is the progam instructions:

Objective: String and StringTokenizer classes

Construct a simple and limited profanity checking application. For each input sentence or fragment, the usage of profanity is checked ?case insensitive. For each offending word, the program replace it with the string 齈ROFANITY!!!? then output the corrected sentence with the number of profanity words in the sentence. The program terminates on the input sentence: 齟xit?

The program must be able to handle the following punctuations found in a sentence: commas, semicolon, periods, exclamation marks, ampersand, parentheses, and double quotes, apostrophe. Assume that hyphenation does not exist.

The dictionary of profanity words, excluding phrases, is to be hard-coded in the program ?for convenience. Student should construct the dictionary ?please be tasteful.

[1427 byte] By [chaohiolabonjoura] at [2007-9-29 14:16:52]
# 1
Are you ever going to give up posting (and cross-posting) this obvious homework assignment, you cheating ******? http://forum.java.sun.com/thread.jsp?thread=456208&forum=1&message=2081677
warnerjaa at 2007-7-15 4:55:34 > top of Java-index,Other Topics,Algorithms...