Question: Main Class: Lab11 Java Class: FancyString Lab Objective: Student will learn string manipulation using substring method. You will implement the java (object) class file FancyString.

Main Class: Lab11 Java Class: FancyString

Lab Objective: Student will learn string manipulation using substring method. You will implement the java (object) class file FancyString. The java class file does not require you to have any instance variables or constructors. The methods created in FancyString will be static methods, using the following heading format: public static String topTriangle(String word) The first method will be called topTriangle will return a string that will form a triangle based on a given word. For example given BOOK, the method will return BOOK BOO BO B public static String bottomTriangle(String word) The second method will be called bottomTriangle will return a string that will form a triangle based on a given word. For example given BOOK, the method will return B BO BOO BOOK public static String reverseTopTriangle(String word) The second method will be called reverseTopTriangle will return a string that will form a triangle based on a given word. For example given BOOK, the method will return BOOK *BOO **BO ***B public static String reverseBottomTriangle(String word) The second method will be called reverseBottomTriangle will return a string that will form a triangle based on a given word. For example given BOOK, the method will return ***B **BO *BOO BOOK

* indicate spaces Be sure to include a minimum of 5 test case to ensure your code is working correctly.

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!