I would like to know how you can input information from one array to another. For example
String A[]
A[0]= 2, 54, 6, 7
A[1]= 434, 32, 45
A[2]= 34, 45
A[3]= 20
Where all that are in "A" are actually seen as strings, and you want to input this into an int array called City "int City[]". I want to put all information from A into City, so that
City[0]= 2
City[1]= 54
City[2]= 6
City[3]= 7
City[4]= 434
City[5]= 32
and sooo on........ thing is I later on have to input city into a 2d array but I really don't know how to get on with the first bit. Please Help!!
yazz110 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.