摘要: 1. package ac;public dd { public static void main(String[] args) { int a[]= {10,20,30,40,50}; for(int i=0;i<a.length;i++) { System.out.println(a[i]); 阅读全文
posted @ 2020-04-09 11:48 ahuhah 阅读(100) 评论(1) 推荐(0) 编辑
摘要: 1.package qe;public class ad { public static void main(String args[]) { //1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句)int sum = 0; for(int 阅读全文
posted @ 2020-04-01 10:44 ahuhah 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1. package asd; import java.util.Scanner; public class cc { public static void main(String[] args) { // TODO Auto-generated method stub System.out.pri 阅读全文
posted @ 2020-03-26 11:58 ahuhah 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. package text;import java.util.Scanner;public class zuoye { public static void main(String[] args) { //1.输入一个年份,判断是不是闰年(可以被4整除但不能被100整除,或者能被400整除) S 阅读全文
posted @ 2020-03-24 18:56 ahuhah 阅读(186) 评论(0) 推荐(0) 编辑
摘要: package a;public class ab { public static void main(String[] args) { // TODO Auto-generated method stub int a = 1; int b = 2; int c = a; a = b; b = c; 阅读全文
posted @ 2020-03-19 12:00 ahuhah 阅读(151) 评论(0) 推荐(0) 编辑
摘要: package cc;public class aq { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("hello"); }} 阅读全文
posted @ 2020-03-07 10:50 ahuhah 阅读(61) 评论(0) 推荐(0) 编辑