:icon_redface:
what is the equivalent code for this in JAVA :icon_redface:

C:

for(i=0; i<MAX; i++)
{
printf("Give the %d element\n:", i+1);
scanf("%d", &VECTOR);
}

You can use the Scanner class to read the input. I assume you already know how to use System.out.println() or System.out.printf().

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.