Project 7, JAVA Programming

Assignment Help:
Iterate through list of Fish. For each fish that isAlive, do the following:
*


* 1. If this fishIsSurroundedByRocks, DO NOTHING, and move on to the next fish.
* (This fish will not turn.)
*


* 2. If this fish''s direction is not equal to one of the codes UP, DOWN, LEFT, or
* RIGHT, then throw an IllegalFishDirectionException, passing this fish''s
* direction to the constructor.
*


* 3. Check whether or not this fish is about to hit a rock if it moves in it''s
* current direction. If it is about to hit a rock, call the fish''s
* setRandomDirection method. Repeat this step until the fish is no longer
* about to hit a rock. Do not make any EXTRA calls to setRandomDirection or
* you will fail our tests!
*/

public void turnFish() {


Related Discussions:- Project 7

Java server faces - eagro portal project, eAgro Portal Project: Techno...

eAgro Portal Project: Technology Used: Java Server Faces, JSR 168 Specification, Websphere Portal Server5.0, DB2 database And Rational Application Developer, Jasper Report Too

Please help, Write a program to find the area under the curve y = f(x) betw...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Explain primitive and abstract data type in java, Question 1 Describe any ...

Question 1 Describe any five buzz words in Java Question 2 Describe exception classes and also explain common exceptions in java Question 3  Describe primitive and

We require responsible and serious programmer, We require responsible and s...

We require responsible and serious programmer Project Description: Big Data and On-line tools Website Liferay - JAVA - Portlets - JSP and JSF Skills required: J2EE,

Lesson 20 project How far to the Line, I do not understand how to do this? ...

I do not understand how to do this? can someone help me?

Arrays, Write an application that uses an Array to store 10messages of type...

Write an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be “I love Jav

Basic java, Why is Java platform independent / architecturally neutral / po...

Why is Java platform independent / architecturally neutral / portable?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd