Question: Question 2 Jack Jill Please convert the following solution to one based on methods. 1 public class Jack Jill3 { 2 public static void

Question 2 Jack Jill Please convert the following solution to one based

Question 2 Jack Jill Please convert the following solution to one based on methods. 1 public class Jack Jill3 { 2 public static void main(String[] args) { 3 System.out.println("Jack and Jill went up a hill"); 4 System.out.println("To fetch a pail of water,""); 5 System.out.println("Jack falls down and broke his crown,""); 6 System.out.println("and Jill came tumbling after."); 7 System.out.println(); 8 System.out.println("Allen and Anna went up a hill"); 9 System.out.println("To fetch a pail of water,""); 10 System.out.println("Allen falls down and broke his crown,"); 11 System.out.println("and Anna came tumbling after."); 12 System.out.println(); 13 System.out.println("Bob and Bella went up a hill"); 14 System.out.println("To fetch a pail of water,""); 15 System.out.println("Bob falls down and broke his crown,""); 16 System.out.println("and Bella came tumbling after.""); 17 System.out.println(); 18 System.out.println("Charlie and Cindy went up a hill"); 19 System.out.println("To fetch a pail of water."); 20 System.out.println("Charlie falls down and broke his crown,""); 21 System.out.println("and Cindy came tumbling after."); 22 System.out.println(); 23 System.out.println("David and Dina went up a hill"); System.out.println("To fetch a pail of water,""); 24 25 System.out.println("David falls down and broke his crown,""); 26 System.out.println("and Dina came tumbling after.""); 27 System.out.println(); 28 System.out.println("Eddie and Eva went up a hill"); System.out.println("To fetch a pail of water."); 29 30 31 32 33 34 } System.out.println("Eddie falls down and broke his crown,"); System.out.println("and Eva came tumbling after."); System.out.println(); }

Step by Step Solution

3.44 Rating (154 Votes )

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 Programming Questions!