No problem, thx anyways!
--- Update ---
Please can you help with this ?
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
Member member1=new Member("toto","totopass");
Member member2= new Member("toto2","totopass2");
Member member3=new Member("Issam","Issampass");
MemberList members=new MemberList();
members.addmember(member1);
members.addmember(member2);
members.addmember(member3);
System.out.println("*****************Printing the list of current members********************");
System.out.println(members.toString());
System.out.println("*****************Register as a member************************************");
System.out.println("Enter the username:");
String username="";
username=input.nextLine();
System.out.println("Enter the password:");
String password="";
password=input.nextLine();
Member member4=new Member("username","password");
members.addmember(member4);
System.out.println("*****************Printing the list of current members********************");
System.out.println(members.toString());
When i ask the user the enter a username and a password with the scanner, and then I create a new member with those username and password, but I print it with toString, I have the output username and password instead of the string the user entered ... pls help!!
--- Update ---
I am sorry nevermind, I found my mistake, it should be Member member4=new Member(username,password) instead of Member member4=new Member("username","password");