java代码使用按位运算符添加两个数字 [英] java code to add two numbers using bitwise operators

查看:316
本文介绍了java代码使用按位运算符添加两个数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我java代码只使用按位运算符添加两个数字?我们可以在java OS中编写程序是linux,java5.0版本

please tell me java code to add two numbers with using bitwise operators only? can we write the program in java OS is linux, java5.0 version

推荐答案


请告诉我java代码仅使用按位运算符添加两个数字?我们可以在java OS中编写程序是linux,java5.0版本
please tell me java code to add two numbers with using bitwise operators only? can we write the program in java OS is linux, java5.0 version



即使没有if语句或喜欢?只有位操作?为什么不使用+运算符?

Even without if-statements or the likes? Only bit-operations? Why not just use the + operator?



请告诉我java代码只使用按位运算符添加两个数字?我们可以在java OS中编写程序是linux,java5.0版本
please tell me java code to add two numbers with using bitwise operators only? can we write the program in java OS is linux, java5.0 version



你可以通过google搜索bitwise Horsmeier来尝试一下*啊哈*。那个twit

不能写一个正常的可读语句;他所输入的一切都是难以理解的,

简洁,神秘的胡言乱语。


亲切的问候,


Jos ;-)

You might give it a try by googling for "bitwise Horsmeier" *ahem*. That twit
can''t write one normal readable statement; everything he types is unreadable,
terse, cryptic gibberish.

kind regards,

Jos ;-)



您可以通过Google搜索bitwise Horsmeier来试一试...
You might give it a try by googling for "bitwise Horsmeier" ...



Bit-voodoo!

; )


......

Bit-voodoo!
; )

......


这篇关于java代码使用按位运算符添加两个数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆