hi
below code is an example.I hav couple of questions
1)The highlighted bold red code(myParrot[0]...)can it be simplifyed?
2)Can i use random to generate a given set of numbers?How?
public class Bird{
public static void main(String[] args) {
int[] myParrot = new int[3];
[B]myParrot[0]=1;
myParrot[1]=2;
myParrot[2]=3;[/B]
for (int feature=0; i<myParrot.length; feature++) {
System.out.print(myParrot[feature]);
System.out.print(" ");
}
System.out.println();
}
}