摘要: package com.lyc.method;public class Demo01 { public static void main(String[] args) {// int sum = add(1,2);// System.out.println(sum); test(); } publi 阅读全文
posted @ 2021-01-07 17:15 liuyunche 阅读(56) 评论(0) 推荐(0) 编辑
摘要: package com.lyc.struct;public class TestDemo01 { public static void main(String[] args) { //打印5行三角形 for (int i = 1; i <= 5; i++) { for (int j = 5; j > 阅读全文
posted @ 2021-01-07 17:00 liuyunche 阅读(291) 评论(0) 推荐(0) 编辑
摘要: package com.lyc.struct;public class LabelDemo { public static void main(String[] args) { //打印101~150之间的所有质数 //质数是指在大于1的自然数中,除了1和它本身以外不再有其他因数的自然数。 int 阅读全文
posted @ 2021-01-07 16:22 liuyunche 阅读(577) 评论(0) 推荐(0) 编辑