搞笑!中文的Java代码

无聊之中,用中文写了Java代码,居然可以调试编译通过,能顺利执行,大家可以试试啊!emteeth.gif
调试平台:Windows XP SP2 English + J2SDK1.4.2_11

 1ExpandedBlockStart.gifContractedBlock.gifpublic class 中文  {
 2InBlock.gif    private String 中文变量 = null
;
 3
InBlock.gif    
 4ExpandedSubBlockStart.gifContractedSubBlock.gif    public 中文(String 中文变量) 
{
 5InBlock.gif        this.中文变量 =
 中文变量;
 6
InBlock.gif        System.out.println(中文变量);
 7ExpandedSubBlockEnd.gif    }

 8InBlock.gif
 9ExpandedSubBlockStart.gifContractedSubBlock.gif    public void 中文设定(String 中文变量) 
{
10InBlock.gif        this.中文变量 =
 中文变量;
11ExpandedSubBlockEnd.gif    }

12InBlock.gif 
13ExpandedSubBlockStart.gifContractedSubBlock.gif    public String 中文获取() 
{
14InBlock.gif        return
 中文变量;
15ExpandedSubBlockEnd.gif    }

16InBlock.gif 
17ExpandedSubBlockStart.gifContractedSubBlock.gif    public static String 中文静态方法(String 中文静态) 
{
18InBlock.gif        return
 中文静态;
19ExpandedSubBlockEnd.gif    }

20InBlock.gif
21ExpandedSubBlockStart.gifContractedSubBlock.gif    public static void main(String[] args) 
{
22InBlock.gif        System.out.println(中文.中文静态方法("问一下,中文能使用吗?"
));
23InBlock.gif        中文 中文实例 = new 中文("不知道啊,你要不要试试?"
);
24InBlock.gif        中文实例.中文设定("支持国产,一个变量名也不放过!"
);
25
InBlock.gif        System.out.println(中文实例.中文获取());
26ExpandedSubBlockEnd.gif    }

27ExpandedBlockEnd.gif}

附上程序运行截图: emsmiled.gif
r_cnJava.JPG

转载于:https://www.cnblogs.com/xxpal/articles/817465.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值