spell checker


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: spell checker

  1. #1
    Wrecker Guest

    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


  2. #2
    Paul Clapham Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center