日期:2014-05-20  浏览次数:20854 次

就算你是高手也不一定会做的题,结贴再给出答案。
就算是高手也不一定会做的题:
一定要小心翼翼,慢慢来,要注意你所学的知识。
(如果中途跳出对话框,按“确定”-> “取消”-> “确定”-> “取消”的顺序进行。)

System.out.print(b---a)boolean   temp=true;
int   a=0;
int   b=2;
if(temp   ||   a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test1 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b+++a);
b=2;
if(!temp   ||   a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test2 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b+++a);
b=2;
if(temp   |     a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test3 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b---a);
b=2;
if(!temp   |     a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test4 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b---a);
b=2;
a=0;
if(temp   &&   a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test1 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b+++a);
b=2;
if(!temp   &   a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test2 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b+++a);
b=2;
if(temp   &&     a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test3 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b---a);
b=2;
if(!temp   &     a==(b=JOptionPane.showConfirmDialog(null, "Are   you   sure? ", "Test4 ",2,JOptionPane.YES_NO_OPTION)))
        System.out.print(b---a);

不要求教于人,也不要去尝试运行,自己想想。

如果你想来的跟运行的结果是一样的,那么请加此QQ群:
34317592
验证码为你的答案。

我们会热烈欢迎你的到来:因为你的细心是无与比拟的,你一定会成为一个优秀的程序员。

来群里后要勤快一点哦!

------解决方案--------------------
不知是水平不行,还是怎地,怎么也看不懂lz的意图,到底要做什么,
并且觉得有好多的错误,语法,逻辑...


------解决方案--------------------
这样的代码就是编程高手了?
想不明白!
如果我的手下有写这样代码的,我立即开除之!