hi thnake for reply i did declare the phone number as number dosen't work if insrting the 01992 but work with +1992, my question how to insert phon number started with 0.
Code:public class Test { public static void main(String args[]) { CustomerDetails customer = new CustomerDetails (2,"omar","sun","n3 6hr",+1992787878); System.out.println("Custer Details is \t" + customer.getCustomerId() +" "+ "House Number is"+ " "+customer.getHouseNumber()+ " "+ customer.getStreetName()+" "+customer.getTelephoneNo()); } }




Reply With Quote