Question: Create People.java Class for a Person with following functionality. People object should have following attributes/fields... (make them private) their name as String, their address in

 Create "People.java" Class for a "Person" with following functionality. People object

should have following attributes/fields... (make them private) their name as String, their

Create "People.java" Class for a "Person" with following functionality. People object should have following attributes/fields... (make them private) their name as String, their address in next String and their phone number in 7 digit integer Put all this information in "People" object by doing the following Create a default Blank constructor - (Name should be "No Name", Address should be "000 Street, 000 City, North Pole, Earth", and Phone number should be 1234567) Create a full constructor Create accessors for all fields Create mutators for all fields (use proper this.) Create toString method for People Now create People Main.java Ask user to enter their name (Make sure you allow spaces), address (Make sure you allow spaces), and 7 digit phone number (take this in as int) - save that in a People object. - Write this people object using the "toString" method to a new file called "PeopleDataBase.txt" Create a blank object and save it to the file called "PeopleDataBase.txt" - Create another blank object but this time after creating this blank object add - Name: John Smith - Address: 12 Dorm Room, 34 Street, Auburn, WA - Phone: 9085678 save it also to the file called "PeopleDataBase.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!