摘要: public class Chengfademo { public Chengfademo() { } public static void main(String[] args) { for(int i = 1; i <= 9; ++i) { for(int j = 1; j <= i; ++j) 阅读全文
posted @ 2023-07-22 14:09 咕嘎咕咕 阅读(15) 评论(0) 推荐(0)
摘要: scanner类是获取用户的输入 Scanner s = new Scanner(system.in); 区分next()和 nextline() public class Demo01 { public Demo01() { } public static void main(String[] a 阅读全文
posted @ 2023-07-22 14:02 咕嘎咕咕 阅读(41) 评论(0) 推荐(0)