Question: paste the codes below and thanks java programming Question 1 [Name your file HW4_Q1.java) Write a program that reads a word and prints all substrings,

 paste the codes below and thanks java programming Question 1 [Name
paste the codes below and thanks
java programming

Question 1 [Name your file HW4_Q1.java) Write a program that reads a word and prints all substrings, sorted by length. For example, if the user provides the input "run", the program prints u ru um rum Question 2 [Name your file HW4_22.java] Write a program that reads an integer and displays, using asterisks, a filled and hollow square, placed next to each other. For example if the side length is 5, the program should display Question 3 [Name your file HW4_23.java] Write a method public static String repeat(String str, int n) that returns the string str repeated times. For example, repeat ("ho", 3) returns "hohoho

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!