Java 实例 – 打印矩形

Java 教程 · 2019-02-10 19:42:35

输出矩形。

实例

public class Rect { public static void main(String[] args) { //外层循环 每次输出一行* for (int i = 1; i <= 5; i++) { System.out.print("*"); //内层循环 每次输出一个* for (int j = 1; j <= 5; j++) { System.out.print("*"); } System.out.println(); } } }

输出结果:

******
******
******
******
******

点击查看所有 Java 教程 文章: https://www.codercto.com/courses/l/12.html

查看所有标签

The Black Box Society

The Black Box Society

Frank Pasquale / Harvard University Press / 2015-1-5 / USD 35.00

Every day, corporations are connecting the dots about our personal behavior—silently scrutinizing clues left behind by our work habits and Internet use. The data compiled and portraits created are inc......一起来看看 《The Black Box Society》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具