Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.regex.*;
- import java.util.regex.*;
- public class Demo2
- {
- public static void main(String [] args)
- {
- String rcvd = args[0];
- do
- {
- int ind = rcvd.indexOf(".");
- String part = rcvd.substring(0, ind);
- rcvd = rcvd.substring(ind+1 , rcvd.length());
- System.out.println(part);
- } while(rcvd.indexOf(".") != -1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement