Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

I have a Question in JAVA i have to separate digits like 1234 and program should result 1 2 3 4 can anyone help me!

OpenStudy (anonymous):

Actually i think i can . we have modolus operator in java with % sign so let us we have 1234 so take it as an integer int a = 1234; so divide and take modolus divide and take modolus and kep storing digits is integers then at last u can print it as System.out.println(b+" "+c+" "+d+" "+e); best ov luck :)

OpenStudy (anonymous):

@xaadi1993 : You have quite a good logic and mathematics thanks alot :)

OpenStudy (anonymous):

i'll contact you if have any problem.

OpenStudy (anonymous):

@filzaqueen THak yew ::P

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!