Java: Files, Streams and object serialization
Problem 15.8
(Student Poll) Figure 7.8contains an array of survey responses that’s hard coded into theprogram. Suppose we wish to process survey results that are storedin a file. This exercise requires two separate programs. First,create an application that prompts the user for survey responsesand outputs each response to a file. Use aFormatter to create a file callednumbers.txt. Each integer should be written usingmethod format. Then modify the program in Fig. 7.8to read the survey responses from numbers.txt. Theresponses should be read from the file by using aScanner. Use method nextInt toinput one integer at a time
PayPal Gateway not configured
PayPal Gateway not configured