Case #1: false
Case #2: true
Case #3: true
Case #4: false
import java.util.Scanner;
public class abc {
public long a;
public long b;
public long c;
public abc() {
}
public abc(long l1, long l2, long l3) {
this.a = l1;
this.b = l2;
this.c = l3;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
abc[] aaAbc = new abc[n];
for (int i = 0; i < n; i++) {
/*对象数组在经过创建后只建立了栈内存的地址空间,
因此在没有对每个数组中的对象创建时输出全部为null,
只有经过每个对象实例的独立地开辟堆内存空间,才能正确初始化对象数据。
* */
aaAbc[i] = new abc();
aaAbc[i].a = in.nextLong();
aaAbc[i].b = in.nextLong();
aaAbc[i].c = in.nextLong();
//aaAbc[i] = new abc(in.nextLong(), in.nextLong(), in.nextLong());
}
for (int i = 0; i < aaAbc.length; i++) {
boolean t = (aaAbc[i].a+aaAbc[i].b)>aaAbc[i].c;
System.out.println("Case #"+(i+1)+": "+t);
}
}
}