RUN CODE TEST CASES ASSIGNMENT DOCS GRADE WERE Status: Not Submitted For this exercise, you are going to write your code in the FormFill class mg] instead of the main method. The code is the same as if you were writing in Tmi the main method, but now you will be helping to write the class. It has a few Cher instance variables that stores personal information that you often need to fill in various forms, such as online shopping forms. 7. fu r.st Read the method comments for more information. As you implement these methods, notice that you have to store the result of r.cr concatenating multiple Strings or Strings and other primitive types. Concatenation produces a new String object and does not change any of the Strings being concatenated. Pay close attention to where spaces should go in the String, too. FormFillTester has already been filled out with some test code. Feel free to change the parameters to print your own information. If you don't live in an apartment, just pass an empty String for the apartment number in setAddress Don't put your real credit card information in your program! When you run the program as written, it should output Dog, Karel 123 Cherry Lane Apt 48 Card Number: 123456789 Expires: 10/2825 SANDBOX MY SECTION CG 2.7.8: Full Name Save Su Camii 1 public class FormFill 2.1 3 4 private String fNane; 5 private String INane; 6 private int streetNumber; 7 private String street Nane; 8 private string aptNumber; 9 10 1/ Constructor that sets the first and last name 11 // streetNumber defaults to o 12 // the others default to an empty string 13 public FormFill(String firstName, string lastName) 14 - { 15 fame-firstName; 16 Name-lastName; 17 1 18 19 // Sets streetNumber, streetName, and aptNumber to the given 20 // values 21 public void setAddress(int number, String street, String apt) 22 { 23 street Number number; 24 streetName street; 25 aptNumberapt; 26 ) 27 28 // Returns a string with the name formatted like 29 // a doctor would write the name on a file 30 // 31 // Return string should be formatted 32 1/ with the last name, then a comma and space, then the first name. 33 // For example: LastName, FirstName 34 public String fullName() 35 36 string name = lame + ", " + fName; 37 return name 38 3 39 40 // Returns the formatted address Formatted like this 42 // // StreetNumber StreetName // Apt Apt Number 45 // // You will need to use the escape character in // To create a new line in the string public String streetAddress() string who street Number + + streetName\" "Apt " + aptNumber: return who 3 50 51 52 53 54 55 56 57 1/ Returns a string with the credit card information // Formatted like this: 1 card aber: Card DUDIO Forte 15 38 19 20 21 22 23 name=first Name Isane lastName: 3 // Sets street Number.streetName, and apt Number to the given valios public void setAddress(int number, string street, String apt) street Number number streetNamestreet; aptNumber apt; 2 25 26 27 28 29 30 31 32 33 34 35 1/ Returns a string with the name formatted like W a doctor would write the name on a file VA 1 Return string should be formatted // with the last name, then a comna and space, then the first name. 1/ For example: LastName, FirstName public string fullName() " string name Name return nane Nane; 37 38 39 40 1 42 44 45 46 // Returns the formatted address // Formatted like this 1/ // Street Number Street Name // Apt Apt Number // // You will need to use the escape character in // To create a new line in the string public string streetAddress() string who = streetNumber +""+ streetName + "\n" + "Apt return who; } + apt Number : 48 49 50 51 52 53 54 55 56 57 58 59 60 61 G2 63- 64 65 66 67 68 69 ) // Returns a string with the credit card information // Formatted like this: // // Card Number: Cards // Expires: expMonth/expYear // // Take information as parameters so we don't store sensitive information! 1/ You will need to use the escape character in public String creditcardinfo(int creditcardNumber, int expMonth, int expYear) { string wish = "Card Number : " + creditcardNumber + "\n" "Expires: " + (expMonth/expYear) return wish; } 2.7.8: Full Name Save Sub 1 public class FormFillTester 2-{ 3 public static void main(String[] args) { 5 FormFill filler = new FormFill("Karel", "Dog"); 6 filler.setAddress (123, "Cherry Lane", "48"); 8 System.out.println(filler.fullName()); 9 System.out.println(filler.streetAddress(); 10 11 System.out.println(filler .creditcardInfo(123456789, 10, 2025));