Log in
Sign up for FREE
arrow_back
Library

Arrays of References Quiz

star
star
star
star
star
Last updated almost 2 years ago
13 questions
1
1
1
1
1
1
Question 6
6.
1
1
1
1
DIRECTIONS : Complete each of the empty methods below.
public class Chicken{
//data not shown
public Chicken(String n, int a){
//code not shown
}
//other methods now shown
}
public class Chickens
{
private Chicken[] chicks;
public Chickens(int size)
{
//Enter code here 1
}
public void add(int spot, Chicken chick)
{
//Enter code here 2

}
public String toString()
{
return Arrays.toString(chicks);
}
}
public class ArrayOfReferencesQuiz2A
{
public static void main(String args[]) throws Exception
{
//Enter code here 3

}
}


1
1
1
Question 1
1.
Question 2
2.
Question 3
3.
Question 4
4.
Question 5
5.
Question 7
7.
Question 8
8.
Question 9
9.
Question 10
10.
Question 11
11.

Enter code here 1

Question 12
12.

Enter code here 2

Question 13
13.

Enter code here 3

Use Scanner