Description: Using your answer from Question 1. Write one new class named PatternsA that contains two
methods:
i. public void printPattern1() – this method should print pattern1.
ii. public void printPattern2() – this method should print pattern2.
The main method of this class should create an instance of the class and then call each new method you
have created in turn. Before each method you should print the name of the method that is about to be
called.
To Search:
File list (Check if you may need any files):
新建文件夹 (2)\PatternsA.class
..............\PatternsA.java
新建文件夹 (2)