PROGRAM: public class ForLoop { public static void main(String args[]) { int c; for(c=1; c<=10; c++) { System.out.println(c); } } } OUTPUT: 1 2 3 4 5 6 7 8 9 10 Download as PDF Related posts: Java program to display message Java addition program Java program to show use of If, For, Scanner Java program to enter marks Java program to enter marks, calculate sum, percentage, division etc. Java Program to use Nested Switch case Java program use of Switch case, break statement Java program use of Scanner class, nextInt() Java program use of If Else Java program While loop, input.nextInt() Java program type casting Java Scanner progam Java program arithmetic operators Java array program Java Inheritance Java constant Java Decrement operator Java Do While program Java program use of continue Java Nested Method Java program main function with object Javaprogram Graphic Applets Java program Applet mouse event handling Java program Applet digital clock Java program Applet image display Java program File handling create operation Define a class to declare an integer array of size n and accept the elements into the array. Define a class to declare an array of size 20 of the double datatype, accept the elements into the array and perform the following: Calculate and print the sum of all the elements. Java program for String, to uppercase, to equal, length of string Write a Java program for Buble sort. Write a Java program String to uppercase and count words startig with ‘A’