文件名称:Phonenum
介绍说明--下载内容来自于网络,使用问题请自行百度
实现一个表示电话号码(要求带有区号和号码,如 010-68911205)的 Phone
类,其中某个构造函数的参数应为表示电话号码的字符串。要求实现相应的 set
和 get 函数来分别设置及获取电话号码中的区号(area,如 010)和号码(number,
如 68911205),重写 Object.toString( )函数打印出整个电话号码。(提示:可使用
String.indexOf( )和 String.substring( )等函数)-Implement a said Phone number (with area code and number, such as 010-68911205) Phone
Class, one of the constructor parameters should be said the phone number of the string. Achieve the set requirements
And get functions to set and get the phone number of the area code (area, such as 010) and number (number,
Such as 68911205), rewrite the Object. The toString () function to print out the phone number. (hint: can use
String. The indexOf () and the String. The substring () function)
类,其中某个构造函数的参数应为表示电话号码的字符串。要求实现相应的 set
和 get 函数来分别设置及获取电话号码中的区号(area,如 010)和号码(number,
如 68911205),重写 Object.toString( )函数打印出整个电话号码。(提示:可使用
String.indexOf( )和 String.substring( )等函数)-Implement a said Phone number (with area code and number, such as 010-68911205) Phone
Class, one of the constructor parameters should be said the phone number of the string. Achieve the set requirements
And get functions to set and get the phone number of the area code (area, such as 010) and number (number,
Such as 68911205), rewrite the Object. The toString () function to print out the phone number. (hint: can use
String. The indexOf () and the String. The substring () function)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Phonenum.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.