Results 1 to 2 of 2

Thread: Integer length

  1. #1
    jithan is offline Member
    Join Date
    Jun 2008
    Posts
    39
    Rep Power
    0

    Default Integer length

    hello friends,
    i want to get length of the integer.
    example:
    int i=344;
    length is ..................... 3
    Thanks in advance......

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Convert that integer value into String.

    In that case, you can get its length(how many characters)
    freedom exists in the world of ideas

Similar Threads

  1. Demonstration of the variable length arguments
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 07:38 PM
  2. Using reflection to check array type and length
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 08:42 PM
  3. Replies: 2
    Last Post: 12-12-2007, 05:01 PM
  4. Determining Midi Length
    By Usagi in forum New To Java
    Replies: 0
    Last Post: 12-08-2007, 11:45 PM
  5. Help with method length
    By toby in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 08:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •