Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Conversion From String To Integer??

Conversion From String To Integer??

Scheduled Pinned Locked Moved Java
javaquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    Hello guys.......im newbie in java. How can we conver a string to integer if it contains more than one numbers like this....... String str = "12 23 4 35 56 "; Do you see it has 5 numbers in one string var. How can we do this??

    D 1 Reply Last reply
    0
    • A AmbiguousName

      Hello guys.......im newbie in java. How can we conver a string to integer if it contains more than one numbers like this....... String str = "12 23 4 35 56 "; Do you see it has 5 numbers in one string var. How can we do this??

      D Offline
      D Offline
      Dino Mulahusic
      wrote on last edited by
      #2

      Do you need five integers or one. You could split your string, or you could remove spaces

      Let there arise out of you a band of people inviting to all that is good, enjoining what is right, and forbidding what is wrong: They are the ones to attain felicity. Āli-'Imrān (The Family of Imran), 104.

      A 1 Reply Last reply
      0
      • D Dino Mulahusic

        Do you need five integers or one. You could split your string, or you could remove spaces

        Let there arise out of you a band of people inviting to all that is good, enjoining what is right, and forbidding what is wrong: They are the ones to attain felicity. Āli-'Imrān (The Family of Imran), 104.

        A Offline
        A Offline
        AmbiguousName
        wrote on last edited by
        #3

        thanx ..........i can use split methd.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups