The Artima Developer Community
Sponsored Link

Java Answers Forum
String to Int conversion

1 reply on 1 page. Most recent reply: Jan 27, 2003 11:50 AM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Richard Guerrini

Posts: 2
Nickname: goa
Registered: Jan, 2003

String to Int conversion Posted: Jan 26, 2003 3:03 AM
Reply to this message Reply
Advertisement
I need to convert a string, whose lenght is variable,
into an array of integers, of course the string is made
of numbers, but I need to put the first number of the string
into the first element of my int array and so on.
Any help is greatfully appreciated.
Richard


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: String to Int conversion Posted: Jan 27, 2003 11:50 AM
Reply to this message Reply
Have a gander at StringTokenizer and Integer.parseInt().

Flat View: This topic has 1 reply on 1 page
Topic: Need help! Basic stuff Previous Topic   Next Topic Topic: validation checks

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use