Can someone pls tell me what I am doing wrong? I finally created the frame but I am getting an extra B on the side
package en.codegym.task.pro.task04.task0405;
/*
Unfilled rectangle
*/
public class Solution {
public static void main(String[] args) {
int a =0;
while(a<10){
int b =0;
if(a==0 || b==8){
while(b<20){
System.out.print("B");
b++;
}
}else{
System.out.println("B B");
}
a++;
}
}
}