1.Loops 2. Motivations Suppose that you need to print a string (e.g.,"Welcome to Java!" ) a hundred times. It would be tedious to have to write…