//============================================================================= public class MyLeader { //----------------------------------------------------------------------------- private MyLeader leader; //----------------------------------------------------------------------------- public MyLeader() { leader = null; } //----------------------------------------------------------------------------- public void setLeader(MyLeader leader) { this.leader = leader } //----------------------------------------------------------------------------- } //=============================================================================write a program that creates an array of five MyLeader objects, makes each object's leader point to the first object in the array.
[an error occurred while processing this directive]
[an error occurred while processing this directive]
[an error occurred while processing this directive]