Given:
1. public class Test {
2. public static void main(String [] args) {
3. int x = 5;
4. boolean b1 = true;
5. boolean b2 = false;
6.
7. if ((x == 4) && !b2 )
8. System.out.print("1 ");
9. System.out.print("2 ");
10. if ((b2 = true) && b1 )
11. System.out.print("3 ");
12. }
13. }
What is the result?
发布于 2021-02-15 03:24:19
- 体验AI问答!更聪明、超智能!
- 一款基于GPT的超级AI助手,可以对话、创作、写文案!