I am an infant attempting to learn to crawl through Java. I have been learning for just over four weeks now, and have been doing relatively well. However, I am now on arrays, and find myself not only floundering, but drowning! My text seems extremely difficult to understand, and I am hoping that someone can point me towards some concise explanation for the interactivity in, and between arrays. I understand that an array must be of type string, or int, or double, etc. I do not understand the way in which an array of type string can be associated with int values and double values in order for calculations, and therefore displays, to be credited correctly. Any help or insight would be greatly appreciated.
wedunnit
0
Newbie Poster
Recommended Answers
Jump to PostI think he wants to do something more like
int total = 0;
//where array is an array of strings
for (int i = 0; i < array.length; i++){
total+=Integer.parseInt(array);
}
All 4 Replies
wedunnit
0
Newbie Poster
shivarajM
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
BestJewSinceJC
700
Posting Maven
Ezzaral
commented:
Yeah, I think you're right.
+21
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.