Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class User{
- public String username;
- public String password;
- public int userId;
- public int followers=0;
- public int following=0;
- public User(String username,String password,int userId) {
- this.username=username;
- this.password=password;
- this.userId=userId;
- }
- void printData() {
- System.out.println("Username: "+this.username);
- System.out.println("Pasword: "+this.password);
- System.out.println("ID"+this.userId);
- System.out.println("Fowollers: "+this.followers);
- System.out.println("Fowolling: "+this.following);
- }
- void AddFollowing(int num) {
- following+=num;
- }
- }
Add Comment
Please, Sign In to add comment