Results 1 to 3 of 3

Thread: Arrays in Java

  1. #1
    manideep.d132 is offline Member
    Join Date
    Aug 2011
    Posts
    10
    Rep Power
    0

    Default Arrays in Java

    An array is a list of similar things
    An array has a fixed: name , type and length
    These must be declared when the array is created.
    Arrays sizes cannot be changed during the execution of the code
    myArray has room for 8 elements.The elements are accessed by their index
    in Java, array indices start at 0

    Declaring Arrays :

    int myArray[]:
    declares myArray to be an array of integers
    myArray = new int[8]:

    Java Arrays Example

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Arrays in Java

    Why would anyone want to visit your advertisement-driven pages when Oracle has a much more comprehensive, cross-linked tutorial online?
    The Java™ Tutorials

    Oh, and I''m moving this to Reviews / Advertising. The section Java Code > Array isn't for promoting your blog. Any future posting of advertisements in the technical section will lead to the post being deleted without comment, and may lead to a ban.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Arrays in Java

    And I must add that I've seldom seen a so-called technical blog that's so absolutely cluttered up with unrelated advertising. Do you really think someone who wants to know about Java arrays also wants or appreciates the distraction of blinking, flashing ads for bank loans, mobile phones, T-shirts and more?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. java arrays need help
    By newstart in forum New To Java
    Replies: 3
    Last Post: 07-24-2010, 12:42 AM
  2. Arrays.sort... why sorting all arrays in class?
    By innspiron in forum New To Java
    Replies: 6
    Last Post: 03-23-2010, 01:40 AM
  3. java arrays
    By miko5054 in forum New To Java
    Replies: 15
    Last Post: 03-18-2010, 05:17 PM
  4. arrays in java
    By mayhewj7 in forum New To Java
    Replies: 4
    Last Post: 12-17-2008, 03:48 AM
  5. Arrays in Java
    By hiranya in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •