-
Notifications
You must be signed in to change notification settings - Fork 0
/
LetterB.java
26 lines (23 loc) · 960 Bytes
/
LetterB.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public class LetterB {
public class Main {
public static void main(String[] args) {
String[][] letter = new String[6][4];
for (int i = 0; i < letter.length; i++) {
for (int j = 0; j < letter[i].length; j++) {
if (i == 0 || i == 2 || i==5) {
letter[i][j] = " * ";
} else if (j == 0 || j == 3 ) {
letter[i][j] = " * ";
} else {
letter[i][j] = " ";
}
}
}
for (String[] row : letter){
for (String col : row){
System.out.print(col);
}
System.out.println();
}
}
}}