/* Assigning value to array elements through keyboard */
package webpractrice;
import java.io.*;
public class WebPractrice
{
public static void main(String[] args) throws IOException
{
int Roll[] = new int [5];
...
Friday, April 6, 2018
Thursday, April 5, 2018
Explain of Array types
Dimension
Explain of Array :-
Array
can be divided into the following categories based on the dimension.
1.
One dimensional array.
2.
Two dimensional array.
3.
Multi-dimensional array.
One Dimensional Array :
Array is a dimensional array balloon made with a single...
Array output in Java code
/* Example of Array Output */
package ArrayOutput;
public class ArrayOutput
{
public static void main(String[] args)
{
int marks[] = {23, 54, 34, 10, 15, 30, 25};
for(int i = 0; i <= 6; i++)
...