char problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onindita
    New Member
    • Jul 2009
    • 3

    char problem

    how can i separate "."(full stop) from a word?

    for example:
    world.

    how can i get world and . separately?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by onindita
    how can i separate "."(full stop) from a word?

    for example:
    world.

    how can i get world and . separately?
    Read the API documentation for the String class; there's the indexOf() method and the split() method and some more that might be of help.

    kind regards,

    Jos

    Comment

    Working...