There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
All things are lawful, but not all things are profitable.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
And that is another problem about parallel arrays: you can't easily use a for‑each loop.Piet Souris wrote:. . . with parallel arrays, you must have indices . . .
There are three kinds of actuaries: those who can count, and those who can't.
That depends on where you are writing what. If you need more information, please provide more detailsSara Suomela wrote:I get your point, but every time time I try to write names I get an error.
I tried with familyNames and I don't.
That is because you are printing the arrays and not the elements from the arrays. Read about the Object#toString() method and remember that arrays don't override that method.. . . my output looks like this:
If you are counting like that, you will need a counter variable of some sort. No, that isn't the right way to set up a number variable. I thought PS had already shown you how to declare a counter.Do I need again to set a counter variable? and if so, is it:
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote: (...)
should be:
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.