Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please pay attention to question dont use system.out.println more then once // Add your name and the section number public class song / I Insert

Please pay attention to question dont use system.out.println more then once image text in transcribedimage text in transcribedimage text in transcribed

// Add your name and the section number public class song / I Insert your static methods in here. / / do not change the following main code public static void main (String [] args) play ("one", "suck his thumb"); play ("two", "tie his shoe"); play ("three", "climb a tree"); play ("four"," shut the door"); play ("five", "take a dive"); \} The ants go marching one by one, hurrah, hurrah The ants go marching one by one, hurrah, hurrah The ants go marching one by one, The little one stops to suck his thumb And they all go marching down to the ground The ants go marching two by two, hurrah, hurrah The ants go marching two by two, hurrah, hurrah The ants go marching two by two, The little one stops to tie his shoe And they all go marching down to the ground The ants go marching three by three, hurrah, hurrah The ants go marching three by three, hurrah, hurrah The ants go marching three by three, The little one stops to climb a tree And they all go marching down to the ground The ants go marching four by four, hurrah, hurrah The ants go marching four by four, hurrah, hurrah The ants go marching four by four, The little one stops to shut the door And they all go marching down to the ground The ants go marching five by five, hurrah, hurrah The ants go marching five by five, hurrah, hurrah The ants go marching five by five, The little one stops to take a dive And they all go marching down to the ground -.-jGRASP: operation complete. Download the starter code Song.java and complete the program : Song.java Do NOT modify the main method in the file. Your program should print out the song The Ants Go Marching. Lyrics are available here (Make sure you print out the exact lyrics in the link including commas and spaces between verses) Use static methods to show structure and eliminate redundancy in your solution. You are not allowed to use same statements appearing in more than one place in the code. In particular, any System.out statement(s) repeated should be captured in a method. You will lose significant points if you have redundancy in your code. Following is the sample output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions