File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes SMS Textspeak Corrector in J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "SMS Textspeak Corrector in J2ME" Watch "SMS Textspeak Corrector in J2ME" New topic
Author

SMS Textspeak Corrector in J2ME

Shengton Fuergo
Greenhorn

Joined: Jan 16, 2011
Posts: 4
Hello, good morning.

This is a thesis. My thesis is a "SMS Textspeak Corrector". SMS Textspeak Corrector is a text messaging software for mobile phone where users can convert or correct the “txt spk” message to the original normal words. For instance, it will correct the “txt spk” text message to “text speak” when a user send the message to the recipient. So the recipient will receive the complete words of text message in his mobile phone.

Now, my problem is the correcting part. I don't know where to start since I'm newbie with this language.

Can somebody help me.

Thanks and God bless.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

I don't see a question about any computer language there. When you are designing a program there are (at the highest level of abstraction) two steps:

1. Figure out what you want to do and how to do it.

2. Write code to do that.

It appears to me that you are describing step 1 there. You have to figure out how to correct "txt" to "text" before you start writing any code.
Shengton Fuergo
Greenhorn

Joined: Jan 16, 2011
Posts: 4
Hello, good evening.

I'm newbie to J2ME so I really need your help. I coded a simple program that will compare and replace the text in the TextBox.

For example:
If I type this text:
Hello mate. Long time no spk, lol. Thats np, i'll brb!

This will be the output after pressing the Textspeak command:
Hello mate. Long time no speak, laugh out loud. Thats no problem, i'll be right back!

Here's the code:


I'm having a problem with this this part:


I don't know how to figure it out. What's wrong with my code?
Mariusz Sxxxx
Greenhorn

Joined: Jan 20, 2011
Posts: 3
t.replaceAll(txtWord[a], realWord[a]);

Take this:
http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/index.html
Please check String class
and method replaceAll not exist, please use replace.

BR.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SMS Textspeak Corrector in J2ME