Popular posts from this blog
Create an array of 5 floats and calculate their sum in java .
//Create an array of 5 floats and calculate their sum . public class Nilesh { public static void main (String args[]){ float addition=0; int i=0; // Creating an array sum // Declaration +Initialization + memory allocation attomatically. float [] sum ={1.2f , 2.15f, 5.1f, 8.3f, 9.2f}; for (i =0; i<sum.length; i++){ addition=addition +sum[i]; } // Printing addition using format specifier. System.out.printf("Addition of 5 float no. is =%f",addition);
Prints "Hello World" in JAVA. How to print hello world in java.
Prints "Hello World" in JAVA. For the detailed explaination about code click on link below :: Youtube video link for detailed explination. #1 For Practice copy the code below :: package google; public class javawithnilesh { public static void main (String args[]) { System.out.println("'Hello World "); } }
Comments
Post a Comment