aspose file tools*
The moose likes Java in General and the fly likes Digits in Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Digits in Array" Watch "Digits in Array" New topic
Author

Digits in Array

Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
hi ranches...

i need a solution for the below problem...



here i try to save the entered number into an array..
for example: if user enters 1234, the result will be 4321and we can search for any number..
i try to save these 1234 into array as individual numbers...but am getting result as
a[0]=4
a[1]=3
a[2]=2
a[3]=1

is there any solution for getting result as
a[0]=1
a[1]=2
a[2]=3
a[3]=4
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
Maya Naga
Ranch Hand

Joined: Nov 09, 2009
Posts: 79
thanks.. its works fine..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please, please don't provide direct answers like that--our goal is to help people learn how to learn.

It's obviously too late this time, which is too bad.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Digits in Array