Consider the following Java code segment: When the user inpu…

Consider the following Java code segment: When the user inputs 1 as the value of testVal, the final value of x will be:      When the user inputs 2 as the value of testVal, the final value of x will be:      When the user inputs 6 as the value of testVal, the final value of x will be:      When the user inputs 7 as the value of testVal, the final value of x will be:      When the user inputs 9 as the value of testVal, the final value of x will be:      When the user inputs 10 as the value of testVal, the final value of x will be: