• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMS Textspeak Corrector in J2ME

 
Shengton Fuergo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic