Playing Compiler
For each of the following fragments, explain and correct the errors. If the fragment stands correct as it is, then say so.
a. ArrayList
test = new ArrayList (20); list.add(“35”);
list.add(35);
b. ArrayList temp = new ArrayList();
temp.add(“35”);
temp.add(35);
c. Stack
= new Stack(); push(1);
push(‘a’);
d. Stack
> really = new Stack >();
e. LList
testlist _ new testlist (); testlist[3] = 7;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.