Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
In a French learning program I'm writing I've got a bit of code like this: --------------------------------------------------------------- String[][] words = {{"Hello", "Bonjour"}, int numberOfWords = 4; --------------------------------------------------------------- Should I want to add more words, I also have to change the value of numberOfWords (there is a part later in the program where it needs to know how many words there are). Is there any way of automatically finding out how many there are, without me having to manually change it?
Replies:
|
Sponsored Links
|