JAVA_CODINGS Telegram 67
47. Basic Array.

import java.util.*;

class ArrayBasic
{
public static void main(String[] args)
{
int[] arr;
int size, i;

Scanner sc = new Scanner(System.in);

System.out.println("Enter size of array");
size = sc.nextInt();

arr = new int[size];

System.out.println("\nEnter array elements");
for (i = 0; i < size; i++)
{
arr[i] = sc.nextInt();
}

System.out.println("\nElements in the Array are : ");
for (i = 0; i < size; i++)
{
System.out.print(arr[i] + " ");
}
}
}

@java_codings



tgoop.com/java_codings/67
Create:
Last Update:

47. Basic Array.

import java.util.*;

class ArrayBasic
{
public static void main(String[] args)
{
int[] arr;
int size, i;

Scanner sc = new Scanner(System.in);

System.out.println("Enter size of array");
size = sc.nextInt();

arr = new int[size];

System.out.println("\nEnter array elements");
for (i = 0; i < size; i++)
{
arr[i] = sc.nextInt();
}

System.out.println("\nElements in the Array are : ");
for (i = 0; i < size; i++)
{
System.out.print(arr[i] + " ");
}
}
}

@java_codings

BY Advance Java 👨‍💻


Share with your friend now:
tgoop.com/java_codings/67

View MORE
Open in Telegram


Telegram News

Date: |

Telegram channels fall into two types: Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. Members can post their voice notes of themselves screaming. Interestingly, the group doesn’t allow to post anything else which might lead to an instant ban. As of now, there are more than 330 members in the group. A Hong Kong protester with a petrol bomb. File photo: Dylan Hollingsworth/HKFP. Matt Hussey, editorial director at NEAR Protocol also responded to this news with “#meIRL”. Just as you search “Bear Market Screaming” in Telegram, you will see a Pepe frog yelling as the group’s featured image.
from us


Telegram Advance Java 👨‍💻
FROM American