errr, dude... did you even think about this?
anyway, here is the simpliest version you can do. but since you didnt offer any detail, thats what you get.
you probably want to extend on this by:
- allowing user input via console or input box or something
- checking that the input is a number
- checking that the input is exactly 5 didgits in length
- dont add the spaces after the last didgit
public class SplitNumbers {
public static void main (String[] args) {
String input = args[0];
for (int i = 0; i < input.length(); i++) {
System.out.print(input.charAt(i) + "");
}
}
}