用星号和制表符在 JAVA 中画一棵树 - 不能在代码中包含 floor

Drawing a tree in JAVA with asterisks and tabs - can't include floor in the code

我的代码在数组中打印一棵树干大小为 2 spaces 的树,最后 space 它还需要一层,但我不知道如何实现它,到目前为止我的代码是这样工作的:

 public static void main(String[] args) {
  //up part
  for(int i=1; i<=5; i++){
  for(int k=1; k<=6-i+1; k++){
  System.out.print(" ");    
  }
  for(int j=1; j<=2*i-1; j++){
  System.out.print("*");    
  }
  System.out.println();
  }
  
  // trunk
  for(int i=1; i<=2; i++){
  for(int k=1; k<=5; k++){
  System.out.print(" ");    
  }
  for(int j=1; j<=1; j++){
  System.out.print("||");    
  }
 System.out.println();
  }
  
System.out.println("_____||_____");

  }
}
//floor
for (int i = 1; i <= 2 * 6; i++) {
    System.out.print(i == 6 ? "||" : "_");
}