Android IDE (AIDE) Support Forum

I want to calculate the sum of all numbers from 1 to 1000. Please reply to me by typing xml coding

public class Main
{
public static void main(String[] args)
{
int sum = 0;
// Use a while loop to calculate the sum of 1 to 1000

	System.out.println(sum)