Answer:
String chessboard[][]=new String[6][6];
Explanation:
This is the declaration of a string 2-D array in java.
String is the data type of the variable.
chessboard is the name of the variable.
6 is the size of the 2-D array.
new is the keyword for allocating space to array.
Answer:
just go ahead and refresh the page
Explanation:
You would click the right button to a shortcuts
Answer:
(a) someFunc(3) will be called 4 times.
(b) For non negative number n someFunc method calculates 2^2^n.
Explanation:
When you call someFunc(5) it will call someFunc(4) two time.
So now we have two someFunc(4) now each someFunc(4) will call someFunc(3) two times.Hence the call to someFun(3) is 4 times.
someFunc(n) calculates someFunc(n-1) two times and calculates it's product.
someFunc(n) = someFunc(n-1)^2..........(1)
someFunc(n-1)=someFunc(n-2)^2..........(2)
substituting the value form eq2 to eq 1.
someFunc(n)=someFunc(n-2)^2^2
.
.
.
.
= someFunc(n-n)^2^n.
=2^2^n
2 raised to the power 2 raised to the power n.