how to create an array?.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul NIcolai Sunga
    New Member
    • Mar 2008
    • 43

    how to create an array?.

    hi!!> i am having a problem in creating an array, its just that it is so hard to create an array. can you halp me to do an array?.please.. thankz
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    [CODE=java]int[] myArray = new int[100];[/CODE]

    Replace int with any type you like.

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Originally posted by Ganon11
      [CODE=java]int[] myArray = new int[100];[/CODE]
      Once you know the syntax, it's not so hard, is it? :-)

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        Originally posted by Paul NIcolai Sunga
        hi!!> i am having a problem in creating an array, its just that it is so hard to create an array. can you halp me to do an array?.please.. thankz
        Do you have a book?

        regards,
        sukatoa

        Comment

        • satch
          New Member
          • Feb 2008
          • 23

          #5
          Originally posted by Paul NIcolai Sunga
          hi!!> i am having a problem in creating an array, its just that it is so hard to create an array. can you halp me to do an array?.please.. thankz
          http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html

          Comment

          Working...