public class x {
public static void main(String[] args) {
for (int i = 0, k = 0; i < 14; i++) {
if (i < 3) {
for (int j = 0; j < 5 - 2 * i; j++) {
System.out.print(" ");
}
if (i == 2) {
for (int j = 0; j < 6 + 4 * i - 1; j++) {
System.out.print("*");
}
for (int j = 0; j < 7 - 4 * i + 2; j++) {
System.out.print(" ");
}
for (int j = 0; j < 6 + 4 * i - 1; j++) {
System.out.print("*");
}
} else {
for (int j = 0; j < 6 + 4 * i; j++) {
System.out.print("*");
}
for (int j = 0; j < 7 - 4 * i; j++) {
System.out.print(" ");
}
for (int j = 0; j < 6 + 4 * i; j++) {
System.out.print("*");
}
}
} else if (i < 6) {
for (int j = 0; j < 29; j++) {
System.out.print("*");
}
} else {
if (i == 13) {
for (int j = 0; j < 2 * (i - 6); j++) {
System.out.print(" ");
}
System.out.print("*");
} else {
for (int j = 0; j < 2 * (i - 6) + 1; j++) {
System.out.print(" ");
}
for (int j = 1; j < 28 - 4 * k; j++) {
System.out.print("*");
}
k++;
}
}
System.out.println();
}
}
}

最新文章

  1. ADSL自动更换IP地址源代码
  2. TimeUnit 使用
  3. .NET两种常见上传下载文件方法
  4. Arch 常用工具
  5. 网页、php脚本的编码问题
  6. ENode框架Conference案例转载
  7. 浅谈对SpringMVC的认识
  8. solr-搭建与使用过程中问题总结-链接
  9. HandsonTable日期控件的汉化
  10. Shell 全局变量、环境变量和局部变量
  11. XMPP技术之Smack库的自定义消息扩展
  12. Java8新特性 重复注解与类型注解
  13. Codeforces Round #514 (Div. 2) B - Forgery
  14. Android 创建单独的服务运行在后台(无界面)
  15. xxx.app已损坏,打不开.你应该将它移到废纸篓-已解决
  16. [LeetCode] 129. Sum Root to Leaf Numbers_Medium tag: DFS
  17. json模块&amp;xml
  18. out, ref 和 params 的区别和用法
  19. 安装Thinkphp5
  20. zookeeper+kafka集群的安装部署

热门文章

  1. part9 公用图片画廊组件拆分
  2. Codeforces 1291A - Even But Not Even
  3. Ubuntu使用小技巧汇总
  4. [极客大挑战 2019]Havefun
  5. vue 插槽 part3
  6. 我读《DOOM启世录》——成为一个真正厉害的人
  7. OpenCV和Qt的图像格式互转
  8. python装饰器类
  9. Java8之深入理解Lambda
  10. 第7节 Arrays工具类