Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Java Programming  (Read 3710 times)

0 Members and 1 Guest are viewing this topic.

Sacred_Devil

  • Guest
Java Programming
« on: June 20, 2005, 07:02:59 AM »
i have a question for java programming.  hope someone can help.

the question is this: the question want me to write an application that inputs one number consisting of four digits from the user,

separates the number into its individual digits and prints the digits separated from one another by 3 spaces each

(assume that the number entered will always be a positive non-zero four digits number .)

the output will be like this "1234"  in the input dialog box...  then after adding some command, it will become like this "1   2   3   4"

i can only do until it showed "1234"...
help will be appreciated. thanks
« Last Edit: June 20, 2005, 07:04:51 AM by Sacred_Devil »