MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / AP1

Class AP1

Java/PatternQuestions/AP1.java:3–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package PatternQuestions;
2
3public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected