Results 1 to 10 of 10
Thread: trades
 10072008, 02:53 AM #1Member
 Join Date
 Sep 2008
 Posts
 29
 Rep Power
 0

Huh?
Please read How to ask Smart Questions. It will help you to ask questions that are answerable. Good luck.
 10072008, 03:09 AM #3Senior Member
 Join Date
 Aug 2008
 Location
 Stockholm, Sweden
 Posts
 119
 Rep Power
 0
Not quite sure I follow you. Do you want them to switch values => trade1 = 50 and trade2 = 5 (hence the opposite)?
 10072008, 04:26 AM #4
 Join Date
 Jul 2007
 Location
 Colombo, Sri Lanka
 Posts
 11,370
 Blog Entries
 1
 Rep Power
 26
 10082008, 01:55 AM #5Member
 Join Date
 Sep 2008
 Posts
 29
 Rep Power
 0
like how do i tell it that the trade between those two is 10? so it would trade TRADE1 to TRADE2 therfore adding 5 to TRADE2.
 10082008, 02:34 AM #6Senior Member
 Join Date
 Sep 2008
 Posts
 564
 Rep Power
 13
you must explain your concept of 'trade' clearly
 10082008, 05:26 AM #7
 Join Date
 Jul 2007
 Location
 Colombo, Sri Lanka
 Posts
 11,370
 Blog Entries
 1
 Rep Power
 26
 10082008, 07:08 PM #8
Language barrier?
Not sure what "Trade" means, but from what I can tell it seems to be the following:
Java Code:int trade1 = 50; int trade2 = 5; int tradeRatio = trade1/trade2;// =10 int tradeDifference = tradeRatio  trade2;//=5 trade2 = trade2+tradeDifference;//=10
CJSL
 10082008, 08:26 PM #9Senior Member
 Join Date
 Aug 2008
 Posts
 384
 Rep Power
 13
You was asking how to DIVIDE?..?
I die a little on the inside...
Every time I get shot.
 10092008, 04:24 AM #10
 Join Date
 Jul 2007
 Location
 Colombo, Sri Lanka
 Posts
 11,370
 Blog Entries
 1
 Rep Power
 26
Yes, looking and his last code segment, seems to me he's asking about mathematical operation in Java. If so, better to study about mathematical operations in programming, (not specific to Java)
Bookmarks