Write theese methods in JAVA. Create userName biography ----: A user is created with the name userName and user infor

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write theese methods in JAVA. Create userName biography ----: A user is created with the name userName and user infor

Post by answerhappygod »

Write theese methods in JAVA.
Create userName biography ----: A user iscreated with the name userName and user information biography. Ifthere is someone with the same username, the error “existing username” is given. Biography may contain a space character, butuserName cannot. When the user is created “userName has beencreated!" the message is published. A profile file nameduserName.txt is created for the user under the “users” folder. Inthe first line, the user's name and bios are written. Also, auserName.txt“ file is created under the ”lines" folder.
Follow userName1 userName2 ------: userName1 starts followinguserName2. If any of the users are absent, it gives an “one of theusers does not exist” warning. If it is already following, a“Already following” warning is given. If a successful operationoccurs, the inscription “userName1 is following userName2” iswritten
Unfollow userName1 userName2 -------: userName1 Stopsfollowing userName2. If any of the users are absent, it gives an“one of the users does not exist” warning. If it is already notfollowing, a “Already not following” warning is given. If asuccessful operation occurs, the inscription “userName1 isunfollowing userName2” is written
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply