Find Jobs
Hire Freelancers

Area Code Java Program

$30-250 USD

完了済み
投稿日: 11年以上前

$30-250 USD

完了時にお支払い
Overall Requirements Every phone number is broken up into sections as shown below: Country Code Area Code Prefix Line Number 1 919 882 5000 Write a program to separate out a phone number when it is given with colon’s separating the sections. [login to view URL] Your driver class should contain the following main method: (add comments) public static void main(String[] args) { RWDissector phone = new YIDissector("1:919:882:5000"); [login to view URL]([login to view URL]()); [login to view URL]([login to view URL](4)); [login to view URL]([login to view URL](1)); [login to view URL]([login to view URL](3)); [login to view URL]([login to view URL](2)); } // end main [login to view URL] Implement a [login to view URL] class that stores the phone number as a colon separated string of numbers and as four separate pieces described below. You must implement all of the following: Instance variables: (10%) colonSeparated – a colon separated String. Example value: "1:919:882:5000" countryCode – stored as a String as it could hold 001 areaCode, prefix, number – stored as int variables Constructor: (30%) This constructor receives one parameter, a colon-separated string. You may assume that the parameter’s value is valid (i.e., no error checking required). The constructor initializes the instance variables with appropriate values. There are many ways to solve the problem of extracting the sections from the given colon separated string. You are required to use String methods to extract the individual sections as strings, and then use parseInt method calls to convert the strings to int’s for those that need it. Do NOT use split as it has not been covered yet. getPhoneNumber method with no arguments: (10%) This is a standard accessor method that simply returns the colonSeparated instance variable’s value. getPhoneNumber method with integer argument: (20%) This method receives the position of one of the section (1, 2, 3, or 4) and returns the section that’s at that position. Area Code is 1, etc. Sample Session: When using the main method specified above, your output should be: 1:919:882:5000 5000 1 882 919
プロジェクト ID: 2591239

プロジェクトについて

29個の提案
リモートプロジェクト
アクティブ 12年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Hi, I'd like to do this project please.
$30 USD 0日以内
4.9 (1157 レビュー)
7.6
7.6
この仕事に29人のフリーランサーが、平均$38 USDで入札しています
ユーザーアバター
I can help you. Thanks
$30 USD 0日以内
4.9 (210 レビュー)
7.6
7.6
ユーザーアバター
Done. Lots of comments in the code. Accept my bid and get it.
$30 USD 0日以内
4.8 (537 レビュー)
7.7
7.7
ユーザーアバター
Hello, I can complete this task in 2 hours from now, please consider my serious bid Thanks Bing
$30 USD 0日以内
4.9 (111 レビュー)
7.3
7.3
ユーザーアバター
Hi, I am JAVA expert and can surely help you here, Please check your inbo,x, Thanks
$30 USD 1日以内
4.7 (422 レビュー)
7.4
7.4
ユーザーアバター
Simple project, I can help you right now, please check your pm.
$30 USD 0日以内
5.0 (59 レビュー)
6.5
6.5
ユーザーアバター
Ready to finish this asap
$30 USD 1日以内
5.0 (90 レビュー)
6.0
6.0
ユーザーアバター
Hello Sir, Interested in doing this project. Thanks.
$30 USD 0日以内
5.0 (28 レビュー)
5.4
5.4
ユーザーアバター
Hello, I can do it.
$30 USD 0日以内
4.8 (59 レビュー)
5.5
5.5
ユーザーアバター
Ready to do it. Thanks.
$30 USD 0日以内
4.9 (95 レビュー)
4.8
4.8
ユーザーアバター
Hi. I can do it. Please check your PMB. Thanks
$30 USD 0日以内
4.9 (23 レビュー)
4.8
4.8
ユーザーアバター
Hi, Ready to start your work. Eagerly awaiting for your positive reply. Please check your inbox for further details. Thanks, Shaik.
$30 USD 0日以内
4.9 (32 レビュー)
4.9
4.9
ユーザーアバター
donedonedone
$30 USD 1日以内
4.8 (15 レビュー)
4.9
4.9
ユーザーアバター
Professional developer. java expert. See my PM.
$30 USD 0日以内
4.9 (16 レビュー)
4.5
4.5
ユーザーアバター
Let expert do it. Please check PMB.
$30 USD 0日以内
5.0 (15 レビュー)
3.9
3.9
ユーザーアバター
I've worked with Java for 6 years. I'm an expert and I could do this in 1 day
$30 USD 1日以内
5.0 (4 レビュー)
3.7
3.7
ユーザーアバター
Hi I am confident to handle this
$30 USD 0日以内
5.0 (16 レビュー)
3.7
3.7
ユーザーアバター
java expert , plz check my PM.
$30 USD 1日以内
4.9 (5 レビュー)
3.7
3.7
ユーザーアバター
Not sure if you've already found somebody, but I wouldn't mind doing this.
$30 USD 0日以内
5.0 (5 レビュー)
3.0
3.0
ユーザーアバター
Hi there, I am Software Engineer working for HSBC since 2 years and I have 2+ years of experience in Java programming and I can provide you this class. And not only will just provide you the program but also will explain you in understanding the program written and also will assist you in enhancing your Java programming skills. Lets get started. Thanks & regards, Webmaniac.
$30 USD 1日以内
5.0 (8 レビュー)
3.1
3.1
ユーザーアバター
I am interested in completing this project for you whenever you need it. -Thanks
$30 USD 1日以内
5.0 (4 レビュー)
2.5
2.5

クライアントについて

UNITED STATESのフラグ
San Antonio, United States
5.0
9
お支払い方法確認済み
メンバー登録日:10月 4, 2012

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。