While loop statement using Java in NetBeans

public class p12_whileloop {
    public static void main(String[] args) {
        int start=1;
        while(start<=10)
        {
            System.out.println(start);
            start++;
        }  
    }   
}