摘要: public class num加加与加加num区别 { public static void main(String[] args) { int a=1; int b=1; System.out.println(a);//a=1 System.out.println(a++);//先执行再自增,输 阅读全文
posted @ 2019-10-23 18:09 今相惜 阅读(137) 评论(0) 推荐(0) 编辑
摘要: public class java的八大基本数据类型 { Package com; static byte b; static short s; static int i; static long l; static float f; static double d; static char c; 阅读全文
posted @ 2019-10-23 18:08 今相惜 阅读(266) 评论(0) 推荐(0) 编辑
摘要: public class c9 { public static void main(String[] args) { for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j)+"\t"); } S 阅读全文
posted @ 2019-10-23 18:06 今相惜 阅读(199) 评论(0) 推荐(0) 编辑
摘要: public class YANGHUISANJIAO { public static void main(String[] args) { //定义了一个长度为10,高度为10的二维数组,数组中的值都为0; int[][] arr=new int[10][10]; for(int i=0;i<ar 阅读全文
posted @ 2019-10-23 18:03 今相惜 阅读(194) 评论(0) 推荐(0) 编辑