Results 1 to 3 of 3
  1. #1
    Shikatsu is offline Member
    Join Date
    Nov 2011
    Posts
    49
    Rep Power
    0

    Default Does passing array to methods can lead to procedural paradigm?

    Greetings EveryOne

    Does passing array to methods can lead to procedural paradigm?

    Is it better avoided or it can be done while preserving an oo design?

    Thank You In Advance
    Knowledge Is Power! Don't give me a fish but teach me how to catch one
    I am not asking you to code it for me, what i need is guidance so i can learn

  2. #2
    Shikatsu is offline Member
    Join Date
    Nov 2011
    Posts
    49
    Rep Power
    0

    Default Re: Does passing array to methods can lead to procedural paradigm?

    Note for thous who might get annoyed this question been asked here since no one answered
    Does passing array to methods can lead to procedural paradigm?
    Knowledge Is Power! Don't give me a fish but teach me how to catch one
    I am not asking you to code it for me, what i need is guidance so i can learn

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,776
    Blog Entries
    7
    Rep Power
    21

    Default Re: Does passing array to methods can lead to procedural paradigm?

    Quote Originally Posted by Shikatsu View Post
    Does passing array to methods can lead to procedural paradigm?

    Is it better avoided or it can be done while preserving an oo design?
    Arrays are quite old fashioned data structures but they exist in Java, so why not use them? As long as you just use them if you need an indexable sequence of things and you know the (fixed) size of the sequence in advance, an array will do fine. Don't impose any other structure on those arrays or you'll be programming Fortran like code.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Arrays and passing values to methods help please.
    By toppcon in forum New To Java
    Replies: 21
    Last Post: 07-28-2011, 06:05 AM
  2. passing arguments to other methods
    By popeyito18 in forum New To Java
    Replies: 2
    Last Post: 07-03-2011, 12:01 AM
  3. passing a .txt into an array
    By j_rod722 in forum New To Java
    Replies: 6
    Last Post: 02-08-2011, 12:45 AM
  4. Replies: 1
    Last Post: 02-03-2011, 06:43 PM
  5. Passing a 2D array
    By toymachiner62 in forum New To Java
    Replies: 6
    Last Post: 10-23-2009, 05:05 PM

Posting Permissions

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