So im stuck on how to add multiple numbers after I find them : I get all of the numbers from 0 to 1000 that are multiples of three but could someone help me on how to add those numbers together now im just really stuck on that part

    public class Hi {
    public static void main(String[] args){
        for(int i = 0; i<1000; i++){
            if(i % 3 == 0)
            System.out.println(i);
        }
    }
}