Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28786
| From | Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: assignments |
| Date | 2014-06-19 20:49 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <lo03uo$c06$1@dont-email.me> (permalink) |
| References | <6aafa91c-4b8c-4884-a30d-2c4af8b443c2@googlegroups.com> |
On 6/19/2014 7:44 PM, Ruben Ongayo wrote:
> Write a java program that can add,subtract,multiply,and divide binary??
> Please help me.....
Here's a start:
public class IAmIncapableOfDoingMyOwnWork {
private static long binaryAddition(int lhs, long kabluie) {
// Your processor is probably using CMOS or some derivative
// so this is definitely a binary addition at that level.
return lhs + kabluie;
}
}
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
assignments Ruben Ongayo <rubzm11@gmail.com> - 2014-06-19 17:44 -0700
Re: assignments Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-19 20:51 -0400
Re: assignments Ruben Ongayo <rubzm11@gmail.com> - 2014-06-19 18:06 -0700
Re: assignments Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-19 21:33 -0400
Re: assignments Gordon Levi <gordon@address.invalid> - 2014-06-21 20:51 +1000
Homework sabotage [Was: Re: assignments] Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-21 08:46 -0400
Re: assignments Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-06-19 20:49 -0500
Re: assignments Roedy Green <see_website@mindprod.com.invalid> - 2014-06-20 08:04 -0700
csiph-web