The text message method getText (Table 2–20 ) retrieves the contents of a text message’s body in the form of a string:
String textBody = inMsg.getText();
Name
Description
getText
Get content string