Search:

Type: Posts; User: raabhim

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,444

    Re: Q about the String class

    just what I needed.
    Thank you very much!
  2. Replies
    4
    Views
    1,444

    Re: Q about the String class

    yup, it's working. Thank you!




    public String getPhoneNumber(String p){
    return p.charAt(0) + p.charAt(1) + p.charAt(2)+ "-" +
    p.charAt(3) + p.charAt(4) + p.charAt(5) + "-"...
  3. Replies
    4
    Views
    1,444

    Q about the String class

    Hi there.

    Is there any method in the String class that will take 1234567899 and return - 123-456-7899 ?
    Reason: get a user input for phone number and return it as a readable phone number format....
Results 1 to 3 of 3