in this code if i input exit this loop must be ended but if i enter random string such as quit this loop quit i want to quit only i enter exit.My english kinda bad sorry for that.Ty for helping
public static void main(String[] args) {
Scanner input= new Scanner(System.in);
String word;
String e;
HashMap<String,String> sozluk=new HashMap<String,String>();
sozluk.put("book","kitap");
sozluk.put("table","masa");
sozluk.put("chair","sandalye");
sozluk.put("notebook","defter");
sozluk.put("printer","yazıcı");
do {
System.out.println("lütfen ingilizce kelimeyi giriniz:");
word=input.nextLine();
System.out.println("ingilizce kelime karşılığı olan şey: "+sozluk.get(word));
System.out.println("çıkmak istiyormusunuz");
e=input.nextLine();
} while(e=="exit");
System.out.println("exit success");