user have to write an email in multiple lines and stop the input when ".." (two dots) are entered by the user. then the email should be saved to the variable but the variable saves the last input which are the two dots. this is my code any changes?
BufferedReader inl = new BufferedReader(new InputStreamReader(System.in));
String email_data;
System.out.println("Data: ");
do{
email_data = inl.readLine();
} while(email_data != "..");