[SOLVED] Simple Calculations in Java
I'm after some simple advice with a java problem.
I need to be able to add two int arguments together in order to produce a result using a method. Say I need to add 9 + 9 = 18, I also need to be able to take the result 18 and use the 1 for something and also the 8 for something. How do I spilt 18 into the number 1 and number 8 so I can set something using these numbers.
The method should take the two arguments and return no result.
Code so far:
public void add(int number 1, int number2)
Yep.. I know this is nothing really!
Any help would be greatly appreciated! :-)