Skip to main content

Featured

Game Development Tutorials In Android

Game Development Tutorials In Android Hi Guys,                 We are shortly started Game Development Tutorials in Android Studio. So everyone supports me and share this blogs to your friends. Guys, At this time everyone is freely available to source code and we are provide a video for step by step game developments. you are learn free and feel free to support us. Guys, if you have any question to me, so feel free to comment us. I will try to answer all the question as long as possible.                                                     Thank's                                                                          ...

Array in java

Learn Java Programming Language Part - III

Array is a collection of similar type of elements that have contiguous memory location. Java Array is an object the contains elements of similar data type. It is a data structure where we store similar elements. We can store only fixed set of elements in a java array.

                                     Single Dimensional Array Example

public class ArrayTest
{
   public static void main(String args[])
   {
           int a[] = new int[3];
           a[0] = 20;
           a[1] = 40;
           a[2] = 60;
           for(int i=0;i<a.length;i++)
           {
               System.out.println(a[i]);
           }
    }
}

Save this file : ArrayTest.java

Compile this file : javac ArrayTest.java

Run this file : java ArrayTest

If this information is important to you , and you want to , I will continue writing some more details of programming language, so click on the advertising, available on this page. This is motivate me for writing some more blogs.

Comments