当前位置:网站首页>Print the star chart "Recommended Collection"
Print the star chart "Recommended Collection"
2022-08-09 18:26:00 【Full stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.
package algorithm;
public class print star graph { public static void main(String[] args) { for(int i=1;i<4;i++){ for(int j=0;j<(i-1)*2+1;j++){ System.out.print(“*”); } System.out.println(); } for(int i=3;i>0;i–){ for(int j=(i-1)*2+1;j>0;j–){ System.out.print(“*”); } System.out.println(); } }
}
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/106029.htmlOriginal link: https://javaforall.cn
边栏推荐
- uni-app中websocket的使用 断开重连、心跳机制
- [Server data recovery] Data recovery case of file system data loss caused by SAN LUN mapping error
- 【挨踢(IT)初体验】
- CocosCreator accesses WeChat mini-games
- 2022国赛Ezpop
- 【1413. 逐步求和得到正数的最小值】
- No need to pay for the 688 Apple developer account, xcode13 packaged and exported ipa, and provided others for internal testing
- PADS生成位号图
- 二分法
- PHP 补全日期区间中缺少的日期/返回缺少的日期
猜你喜欢
随机推荐
网络——IPV4地址(三)
二叉树详解
Leading practice | How the world's largest wine app uses design sprint to innovate the vivino model
DP 优化方法合集
2.1、基于并行上下文注意网络的场景文本图像超分辨率
动态内存管理,触及本质的最详解析
uniapp project construction
分布式恢复【进阶篇】
苹果开发者账号 申请 D-U-N-S 编号
Collection of DP Optimization Methods
Base64工具类
2022年8月9日:用C#生成.NET应用程序--使用 Visual Studio Code 调试器,以交互方式调试 .NET 应用(不会,失败)
Foreword: About the author Dr. Wu Qiusheng and an introduction to the book
自定义过滤器和拦截器实现ThreadLocal线程封闭
网络——彻底搞懂数据时延的相关计算
@AllArgsConstructor 和 @NoArgsConstructor
C语言初印象(1.2w字粗略讲讲C)
网络——虚拟专用网和地址转换NAT
5. Visualizing Geospatial Data
知识点滴 - 如何写项目总结









