Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions