Arrays And Vectors - Online Code

Description

This code demonstrates use of Array and Vector to store the elements in Index form.

Source Code

import java.util.*;

public class Main
  {

    public static void main(String[] args)
    {
     int array[]=new int[10];
     for(int i=0;i<10;i++)
         array[i]=-3*i;
     System.out.println("original 
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.