Newbie Question
From: George (replytogroup_at_group.com)
Date: 03/23/04
- Next message: Andrew Thompson: "Re: Newbie Question"
- Previous message: Andrew Thompson: "Re: getting pixels from an applet area"
- Next in thread: Andrew Thompson: "Re: Newbie Question"
- Reply: Andrew Thompson: "Re: Newbie Question"
- Reply: Bryce (Work): "Re: Newbie Question"
- Reply: Andrew Hobbs: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Mar 2004 12:51:56 -0000
Hi
I trying to initialize an Array with int's and want to print the output as
tha Array is filled but I'm getting the two errors below. Could someone
please point a lost sheep in the right direction.
public class SomeClassTest{
public static void main(String[] args) {
int [] v;
v = new int[10];
for (int i = 0; i< v.length; i++);
v[i] = i; // error 300 variable i
not found in class SomeClassTest
System.out.println("" + v[i] ); // error 300 variable i not found in
class SomeClassTest
}
}
TIA
George
- Next message: Andrew Thompson: "Re: Newbie Question"
- Previous message: Andrew Thompson: "Re: getting pixels from an applet area"
- Next in thread: Andrew Thompson: "Re: Newbie Question"
- Reply: Andrew Thompson: "Re: Newbie Question"
- Reply: Bryce (Work): "Re: Newbie Question"
- Reply: Andrew Hobbs: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|