I think is similar to this?


If((num1 == num2) && (num2 == num3)){
System.out.print("Yes");
}