String names1 = "";
System.out.println("enter names: ");
names1 = kb.next();
while (names1 != "stop")
{
System.out.println("enter names: ");
names1 = kb.next();
namesList.add(names1);
}
everytime i type "stop," the program keeps running...