Code using Java Programming. Show your code and output. Create a person class that has the following attributes as well as appropriate set and get methods: String name, int age, String address. Create a separate class that creates an object of type person and set values for the attributes that object. It would then call get method to retrieve and write those attributes onto a File. The name of the file should be .dat. The program should close the file after writing and open the file again and read and display the values..
Code using Java Programming. Show your code and output. Create a person class that has the following attributes as well as appropriate set and get methods: String name, int age, String address. Create a separate class that creates an object of type person and set values for the attributes that object. It would then call get method to retrieve and write those attributes onto a File. The name of the file should be .dat. The program should close the file after writing and open the file again and read and display the values..