Help with array problem
From: Da Man!! (devdaman_at_hotmail.com)
Date: 08/31/04
- Next message: Andrew Thompson: "Re: javac -server"
- Previous message: KAMANDI: "javac -server"
- Next in thread: Eric Sosman: "Re: Help with array problem"
- Reply: Eric Sosman: "Re: Help with array problem"
- Reply: Andrew Thompson: "Re: Help with array problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 31 Aug 2004 17:10:22 GMT
Hello,
I'm new to java, and have been given a small problem to deal with. I think
i have a clue to what the anwser is. What would the following section of
java code display?
int [] theArray = { 1,2,3,4,5};
for (int i = 1; i < 5; i++)
{
System.out.print(theArray [i] * i + "; ");
}
Thank You
Dev
- Next message: Andrew Thompson: "Re: javac -server"
- Previous message: KAMANDI: "javac -server"
- Next in thread: Eric Sosman: "Re: Help with array problem"
- Reply: Eric Sosman: "Re: Help with array problem"
- Reply: Andrew Thompson: "Re: Help with array problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|