Please code in Java
Challenge Exercise #2: Complete the following program below, the program will ask how many friend and write the friends name in a text file. Program Output with Example Input Shown in Bold How many friends do you have? 5 [Enter] Enter the filename: MyFriends.txt [Enter] Enter the name of friend number 1: Joe [Enter] Enter the name of friend number 2: Rose [Enter] Enter the name of friend number 3: Greg [Enter] Enter the name of friend number 4: Kirk [Enter] Enter the name of friend number 5: Renee [Enter] Data written to the file. #2 print screen the output with code below here.
Please code in Java
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am