Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Specifying a number inside an int

807599May 1 2007 — edited May 1 2007
I know you use charAt( ); for specifying a specific char in a string.

What is the code to specify an int inside an int which is more than one digit long

EG: four digit int
int = 1234

how do i say intAt(0); the number (int) at position 0 within the initial int

I want to specify each one individually so I can use them in seperate equations.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2007
Added on May 1 2007
8 comments
519 views