-
spell checker
I need help with an assinment for my Java class.
Here is the assinment:
You can access the individual characters in a string by the charAt method
of the String class. The charAt method returns a character of type char.
Note that char constants are enclosed in single quotes such as 'e'.
Many word-processors can check spelling. One of the corrections applied is
to swap 'e' for 'i' if 'i' occurs immediately before 'e' and immediately
after 'c'. For example, concieve is corrected to conceive. Write a program
that carries out this correction. Your program should read a string, print
it, and then print either the corrected string or a message saying that
no corrections are necessary.
if anyone could help me out with getting started on this it would be most
appericated.
Wrecker
-
Re: spell checker
Here are the key words from the assignment that will help you get started:
"Write a program". You should be able to write a program that does nothing,
for a start. Then read the assignment again and find out what the program
should be doing. Put in code that does that. If you have specific
problems, please post again.
PC2
"Wrecker" <georgegibb@uswest.net> wrote in message
news:3bd0e188$1@news.devx.com...
>
> I need help with an assinment for my Java class.
> Here is the assinment:
> You can access the individual characters in a string by the charAt method
> of the String class. The charAt method returns a character of type char.
> Note that char constants are enclosed in single quotes such as 'e'.
> Many word-processors can check spelling. One of the corrections applied is
> to swap 'e' for 'i' if 'i' occurs immediately before 'e' and immediately
> after 'c'. For example, concieve is corrected to conceive. Write a program
> that carries out this correction. Your program should read a string, print
> it, and then print either the corrected string or a message saying that
> no corrections are necessary.
>
> if anyone could help me out with getting started on this it would be most
> appericated.
> Wrecker
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks