Question
Need help with this problem in Java Write a program in Java that asks user's name, converts it to the upper case letters, creates a
Need help with this problem in Java
Write a program in Java that asks user's name, converts it to the upper case letters, creates a text file 1.txt and writes the name to it. Then read the file 1.txt, and print out a greeting message with it. For example, if the user's name is Saif alZahir, the program should print out "Hello, SAIF ALZAHIR, nice to meet you!. Then create a text file 2.txt, write the greeting message to it, copy the file 2.txt, and write to the same location with different name 3.txt. In this segment, show how to copy an input file character by character. Your program should display an appropriate error message when the user enters invalid file name. It should ask the user to re-enter the file name, and repeat the process until the user enters valid input.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started