No. The if
statements are organized sequentially.
Here is a sample run of the program: (Of course, it will benefit you to copy-paste-save-compile-and-run the program with Notepad and the JDK.)
D:\users\default\cs151\Notes\chap20>java ComboLock Enter first number: 6 Enter second number: 12 Enter third number: 30 Lock opens