using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _7构造方法 { public class St ...
分类:
其他好文 时间:
2021-01-02 11:25:25
阅读次数:
0
c#定时关机代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; usin ...
android { ...... buildTypes { ...... android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "name_v${variant.versionName} ...
分类:
其他好文 时间:
2021-01-02 10:49:20
阅读次数:
0
public class EnumTest { public static void main(String[] args) { Size s=Size.SMALL; Size t=Size.LARGE; //s和t引用同一个对象? System.out.println(s==t); // //是原 ...
分类:
其他好文 时间:
2021-01-02 10:48:34
阅读次数:
0
public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j=5;j>=i;j--){ System.out.print(" "); } for (int j = 1; j ...
分类:
其他好文 时间:
2021-01-02 10:29:54
阅读次数:
0
java 程序中测试两个变量是否相等有两种方法: == equals()方法 当使用==判断两个变量是否相等时,如果两个变量是基本类型变量,且都是数值类型(不一定要求数据类型严格相同),则只要两个变量的值相等时,才会返回true public class m{ 10 public static vo ...
分类:
编程语言 时间:
2021-01-02 10:28:43
阅读次数:
0
this关键字代指当前对象,可在方法中区分全局变量和局部变量 public class ThisTest { private int age; public ThisTest(){ System.out.println("我是空参"); } public ThisTest(int age){ thi ...
分类:
其他好文 时间:
2021-01-01 12:56:30
阅读次数:
0
问题一:请问以下代码输出什么? int a = 0; for (int i = 0; i < 99; i++) { a = a++; } System.out.println(a); 答案是:0 问题二:请问以下代码输出什么? int b = 0; for (int i = 0; i < 99; i ...
分类:
其他好文 时间:
2021-01-01 12:17:57
阅读次数:
0
class HelloChina{ public static viod main(String[] args){ System.out.println("hello,world"); } } ...
分类:
编程语言 时间:
2021-01-01 12:02:08
阅读次数:
0
1. += *= 等等运算符,不改变变量类型 short s=10; s+=2; System.out.println(s); 编译通过,结果为12; short s=10; s=s+2; System.out.println(s); 编译不能通过,应改为 int i=s+2,因为s+2的结果值为i ...
分类:
编程语言 时间:
2021-01-01 11:52:41
阅读次数:
0