write the Java code Nancy Carol


 write the Java code for classes Team and Player as depicted in the following

UML diagram. Declare the classes in package com.myleague.reg. Provide an implementation of all

methods according to the given method names. You can use the class Random fromjava.util to

randomly pick a student (it has method nextInt(int maxNo) to return a number between 0 inclusive

and maxNo exclusive). If you use Random, make sure you add the appropriate statement to

enable the compiler to fmd its definition. Make sure your constructors make appropriate use of any

parameters. In addition, noTeams reflects the number of teams instantiated.

  • Posted: 4 years ago
  • Due: 
  • Budget: $10
Answers 2

Purchase the answer to view it


Purchase the answer to view it