- #1
NiaSphinx
- 4
- 0
Hi guys,
I'm trying to figure out a way to split up integers so I can do addition the old school way in Java.
E.g.:
1234
1234
+_____
2468
So you know start at the 4's and then add them up and move left etc.
Does anyone have any ideas on how I access the different digits of an int?
Thanks
I'm trying to figure out a way to split up integers so I can do addition the old school way in Java.
E.g.:
1234
1234
+_____
2468
So you know start at the 4's and then add them up and move left etc.
Does anyone have any ideas on how I access the different digits of an int?
Thanks