Solved

string modification

Posted on 2007-11-24
1
351 Views
Last Modified: 2013-11-23
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
Comment
Question by:Everball
1 Comment
 
LVL 7

Accepted Solution

by:
UrosVidojevic earned 500 total points
ID: 20344233
               String str = "hello.how are you?";
            int pos = str.indexOf('.');
            str = str.substring(pos+1);
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumDigits  challenge 7 61
Updating Java 9 87
strCount chalenge 3 50
groupSum6 challenge 6 38
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now