I have two same while loops, the logic is simple. if the value is 7 or the parameter it should stop. it works with the following method
while(true) {
    int value = diceRoll();
    if(value ==7 || value == point){
        return value;
    }
    System.out.print(value + " ");
}
But with the below method, it doesn't do what it needs too. But it's pretty much the same as the above method.
public static int secondStage(int point) {
    int x = 0;
    while((diceRoll() != 7) || (diceRoll() != point)) {
        System.out.print(diceRoll() + " ");
        x= diceRoll();
    }
    return x;
}
 
     
    