Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  sdsd
Language: JAVA
Code:
public class aENAhZYQ {

    public static void main(String[] args) {
        int i,k;
     char[] ipadress = {'0','0','0','0',':','0','0','0','0',':','0','0','0','0',':','0','0','0','0'};
       String PhoneNumber="9766322441";
     String c=new String(PhoneNumber);
     char[] mobile = c.toCharArray();
     
                  
                  

                    i=0;
                    k=0;
    while(i<=9 && k<=18)
     {
          if(ipadress[k]==0)
          {
               ipadress[k]=mobile[i];
               i=i+1;
          }
         if(ipadress[k]==':')
          {
                 ipadress[k+1]=mobile[i];
                 i=i+1;
                }
                           k=k+1;
     }
        
  
        
    }

}          
Comments: