Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ Q1
Method
Q1
Java/PatternQuestions/AP1.java:8–18 ·
view source on GitHub ↗
(int m,int n)
Source
from the content-addressed store, hash-verified
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
1
main
Method · 0.95
Calls
1
print
Method · 0.45
Tested by
no test coverage detected