Question

Fjava work cosc 3 File Edit Iools Project Language Level Help New Open?Save [.. Close %Cut?Copy Paste ?Undo eRedo Find Compile Reset Run Test Javadoc Code Coverage public PercolationStats (int n, int trials)//perform trials of grid S:dAnaylOjava S:dDraw.java Sidinjavea S:dOut java S dRandom java SidStats.jaya if (nc-0Itrials-01//corner part throv ne TllegalArgumentException(Both inputs ust be <0 b-trials: c-new double[ trials); double grid-n n: for(int z-0;trials:2+) int ent-D double Percolation percnew Percolation(n) vhile(!perc.pecolates(O) int rov=i+StdRandom.uniforn(n); int col-1+StdRandon.nifornn if pere.isopen(ro,col) perc.open(ro,col; cnt+t c[z]-cnt/grid; Interactions Console Compiler Output Compiler error found: Eclipse Compiler 4.5 File: F:1java work cosc 3304 PercolationStats.java [line: 27] Error: Syntax error, insert to complete LocalVariableDeclaration5taterent 11:21 AM 6/23/2018 4)

0 0
Add a comment Improve this question Transcribed image text
Answer #1
remove double on that line. change that line to:

Percolation perc = new Percolation(n);

\;\;

Add a comment
Know the answer?
Add Answer to:
Fjava work cosc 3 File Edit Iools Project Language Level Help New Open?Save [.. Close %Cut?Copy...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT