| 1 | package PatternQuestions; |
| 2 | |
| 3 | public class AP1 { |
| 4 | public static void main(String[] args) { |
| 5 | Q1(4,5); |
| 6 | |
| 7 | } |
| 8 | static void Q1(int m,int n) { |
| 9 | for(int i=1;i<=m;i++){ |
| 10 | for(int j=1;j<=n;j++) { |
| 11 | if(i==1||i==m||j==1||j==n){ |
| 12 | System.out.print("*"); |
| 13 | } |
| 14 | else System.out.print(" "); |
| 15 | } |
| 16 | System.out.println(); |
| 17 | } |
| 18 | } |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected