/* 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++)
...
Monday, March 26, 2018
Precedence of Java code
/* Example of Precedence */
package Precedence;
public class Precedence
{
public static void main(String[] args)
{
int a = 5, b = 10, c = 15, d = 20;
int x, y, z;
...
About array in Java programme
Array:
Under the name of a common variable, the data stored in memory of the same type stored in memory is called array. The array is the number of variables set in the same type. Array variables can save multiple data in the same name, same type. Array is a derived data type. Before using the variable declaration, it is necessary to declare array...
Sunday, March 25, 2018
Ternary Operator of Java Programme
/* Example of Ternary Operator */
package Conditional;
public class Conditional
{
public static void main(String[] args)
{
int a = 10, b = 15;
int result;
result...