int[] number = {1..1000};
Molayo Decker wrote:
but i does not work. It telling me i can not convect to an integer
It isn't. That code won't compile.Sam Knowski wrote:. . . Have a look at some array examples to make sure that number = i is the correct way to set a value. . . .
Molayo Decker wrote:I'm not trying to create another array that can hold 500 primitive integers. I'm trying to find a way to create an array that "CONTAINS" "NOT HOLD" primitive integers from 1 - 1000.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Somebody pointed out that I have probably misunderstood you there. Sorry.Sam Knowski wrote:. . . Have a look at some array examples to make sure that number = i is the correct way to set a value. . . .
Campbell Ritchie wrote:We have been using Java8 for 21 months now.
(...)
There are three kinds of actuaries: those who can count, and those who can't.
Molayo Decker wrote:Do you please have a solution to this. I wrapped it in a try/catch clause but did not work.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Molayo Decker wrote:Thanks Wilson. I ended up using the below and it worked...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Molayo Decker wrote:Hi Winston,
Can i get reference documentation on how to do this r.start and r.end. Parameters referencing primitive variables? Am new to this. I don't really get the logic. I know parameters can reference methods but not primitive.
Please help me out here. It will help me understand the code. Thanks.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Have been too busy to answer earlier.Molayo Decker wrote:. . . java.util.IllegalFormatConversionException error.. . . did not work.