Question: You have an Interface Camping as below public interface Camping void campDistance ( ) throws TentException; Write a class TentException ( a custom Exception class

You have an Interface Camping as below
public interface Camping
void campDistance () throws TentException;
Write a class TentException (a custom Exception class) with basic definition
Px
Write Camping' a class interface 'MountainCamping' which will have a have field a
'groupsize and will implement the
parameterized constructor. The
group can go. The
should be in the range 3 to 5. If not, it will throw
distance campDistance() method correctly. randomly The generates class a will distance value that of how exception. far the The class should also
have toString() method.
[4]
the Ina object driver MountainCamping file, information. create an objects and ArrayListc add of them into MountainCamping the c Arraylist. objects. Then Using using al loop, another create loop, 10 print [4]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!