Results 1 to 2 of 2
  1. #1
    mallorz is offline Member
    Join Date
    Jan 2014
    Posts
    84
    Rep Power
    0

    Default Parsing Integers

    Quick, simple question as I am having trouble finding what I am looking for on Google.

    If I have a number 12345 and I want to parse this to read the first two number (12), what would that code look like?

    Would it be the same if 12345 was a String?

    Thank you.

  2. #2
    mallorz is offline Member
    Join Date
    Jan 2014
    Posts
    84
    Rep Power
    0

    Default Re: Parsing Integers

    Go figure ... I started to Google 'split' then came about 'substring' which looks to be right!

    Consider solved. (sorry about that)

Similar Threads

  1. Problem with integers
    By RichardYang in forum New To Java
    Replies: 10
    Last Post: 11-16-2013, 09:47 AM
  2. Parsing Integers
    By allaudin in forum New To Java
    Replies: 10
    Last Post: 07-03-2013, 03:35 PM
  3. Sum of all even integers? Help?
    By psx2514 in forum New To Java
    Replies: 5
    Last Post: 04-03-2013, 06:46 PM
  4. Sum of Integers - From File
    By Cubba27 in forum New To Java
    Replies: 8
    Last Post: 03-25-2010, 11:45 AM
  5. Set of Integers
    By rsjava24 in forum New To Java
    Replies: 7
    Last Post: 01-28-2010, 10:29 AM

Posting Permissions

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