package dev.elaine.jvmlab;

public final class BytecodeSample {
    private BytecodeSample() {
    }

    public static int sumTo(int upperBound) {
        int total = 0;
        for (int number = 1; number <= upperBound; number++) {
            total += number;
        }
        return total;
    }

    public static void main(String[] args) {
        System.out.println(sumTo(100));
    }
}
