private final int servings; // required private final int calories; optional private final int carbohydrates; // optional private final int protein; // optional private final int fat; // optional }
private final int servings; // required private final int calories; optional private final int carbohydrates; // optional private final int protein; // optional private final int fat; // optional }
private final int servings; // required private final int calories; optional private final int carbohydrates; // optional private final int protein; // optional private final int fat; // optional }
private final int servings; // required private final int calories; optional private final int carbohydrates; // optional private final int protein; // optional private final int fat; // optional } • • •
void main(String[] args) { // primitive long instead of the Long reference type long sum = 0L; for (long i = 0; i < Integer.MAX_VALUE; i++) { sum += i; } System.out.println(sum); } }