• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

string modification

I would like to remove all text in a string before a period. for example "hello.how are you?" should become "how are you?"  tia.
0
Everball
Asked:
Everball
1 Solution
 
UrosVidojevicCommented:
               String str = "hello.how are you?";
            int pos = str.indexOf('.');
            str = str.substring(pos+1);
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now