Ok, so if i read in the entire int 1234 and put it into a string and then convert it. How do i split it up into 4 separate variables so i can apply a algorithm to each individual number?
Edit: is...
Type: Posts; User: mooncowtime
Ok, so if i read in the entire int 1234 and put it into a string and then convert it. How do i split it up into 4 separate variables so i can apply a algorithm to each individual number?
Edit: is...
I am trying to split up a four digit integer so i can perform math on each integer to "encrypt" it. This is what i have so far.
import javax.swing.JOptionPane;
public class Project5e
{...