I have started some code, and I would like to be able to enter a number of no more than five numbers and the return result would place 5 spaces in between each number. So for instance I could type in 12345, then the box output would show 1 2 3 4 5.
So first off I need to be able to only enter 5 numbers, second there needs to be 5 spaces between each of them.
String number;
int number1;
number = JOptionPane.showInputDialog("Enter Number");
number1 = Integer.parseInt(number);
JOptionPane.showMessageDialog(null,"Th… new result is" + number1,"Results",
JOptionPane.PLAIN_MESSAGE);
System.exit(0);
Thanks
I didn’t exactly get what U meant but i think it’ll do what U wanted !