Page 1 of 1

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

Posted: Sun Jul 03, 2022 11:23 am
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