摘要: #for循环 表达式 package com.struct; //for public class ForDemo { public static void main(String[] args) { //计算1-100的奇数和,偶数和 int evensum = 0; int oddsum = 0 阅读全文
posted @ 2022-02-14 19:04 小幼虫虫 阅读(50) 评论(0) 推荐(0)
摘要: #whlie和if...else 和 switch()case()break ##if...else package com.scanner; import java.util.Scanner; //if判断 public class Demo01 { public static void main 阅读全文
posted @ 2022-02-14 15:05 小幼虫虫 阅读(44) 评论(0) 推荐(0)