do{
Scanner scan = new Scanner(System.in);
String value = scan.nextLine();
}while(!value.equals("example")/* need another condition here*/);
I want to put two(or more) conditions here, any one of them should be true to stop looping. Thanks for your help.