Question: Task 4.2 What's better than two? That's right three! A third robot (RobotThree) has joined to complete the trio. Bringing over your completed code from

 Task 4.2 What's better than two? That's right three! A third
robot (RobotThree) has joined to complete the trio. Bringing over your completed

Task 4.2 What's better than two? That's right three! A third robot (RobotThree) has joined to complete the trio. Bringing over your completed code from 4.1 will save you some time. 1. Correct the errors in Main.java, you will need to go into the included class files, not just Main.java. Each robot should have a different friend (1->3, 2->1, 3->2), and each robot should still say their friend's line in the friendSpeak () method. 2. Print out the complete verse at the end. 3 A public class Main { public static void main(String[] args) { // some robots Robotone r1 = new RobotOne( name: "One"); RobotTwo r2 = new RobotTwo( name: "Two" r1); RobotThree r3 = new Robot Three name: "Three", r2); r1.makeNewFriend(r3); Il print out the complete verse here } Task 4.2 What's better than two? That's right three! A third robot (RobotThree) has joined to complete the trio. Bringing over your completed code from 4.1 will save you some time. 1. Correct the errors in Main.java, you will need to go into the included class files, not just Main.java. Each robot should have a different friend (1->3, 2->1, 3->2), and each robot should still say their friend's line in the friendSpeak () method. 2. Print out the complete verse at the end. 3 A public class Main { public static void main(String[] args) { // some robots Robotone r1 = new RobotOne( name: "One"); RobotTwo r2 = new RobotTwo( name: "Two" r1); RobotThree r3 = new Robot Three name: "Three", r2); r1.makeNewFriend(r3); Il print out the complete verse here }

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!