摘要:
package com.Fei.java.L2;public class domo6 { public static void main(String[] args) { int max = max(10,10); int sum = add(10,20); System.out.println(s 阅读全文
posted @ 2021-03-04 13:19
Joey19
阅读(39)
评论(0)
推荐(0)
摘要:
package com.Fei.java.L2;public class TestDemo { public static void main(String[] args) { //打印一个三角形,五行 for (int h = 1; h <= 5; h++) {//五行之内循环 for (int 阅读全文
posted @ 2021-03-03 10:58
Joey19
阅读(36)
评论(0)
推荐(0)
摘要:
//九九乘法表for (int i1 = 1; i1 <= 9; i1++) { for (int i2 = 1; i2 <= i1; i2++) { System.out.println(i2+"*"+i1+"="+(i1*i2)+"\t"); } System.out.println("\n") 阅读全文
posted @ 2021-03-02 13:17
Joey19
阅读(60)
评论(0)
推荐(0)
摘要:
package com.Fei.java.L2;import java.util.Scanner;public class demo4 { public static void main(String[] args) { //我们可以输入多个数字,并求其总和与平均数,每输入一个数字用回车确认,通过输 阅读全文
posted @ 2021-03-01 11:01
Joey19
阅读(25)
评论(0)
推荐(0)
摘要:
public class demo5 { public static void main(String[] args) { int a = 10; int b = 20; a+=b;//a = a+b a-=b;//a = a-b System.out.println(a); //字符串连接符 Sy 阅读全文
posted @ 2021-03-01 09:06
Joey19
阅读(34)
评论(0)
推荐(0)
浙公网安备 33010602011771号