Results 1 to 4 of 4

Thread: declaring arrays classes....

  1. #1

    Thread Starter
    Addicted Member myrrdan's Avatar
    Join Date
    Nov 2002
    Location
    Alberta Canada
    Posts
    202

    Exclamation declaring arrays classes....

    Hi, I'm having problems getting this to work. I have to declare an set of arrays to hold student info.
    i have 2 classes, the testing class is the main class, with menu to enter data, search data, exit.
    Entering and searching calls the second class.
    But here is the problem, the way I have it now, the arrays are created everytime the student class is called.
    I'd post the code but its too many lines. So I attached them..
    If someone could tell me how'd they'd make this type of app, maybe i'd be able to figure out how I'm going at this wrong.
    I'm used to VB programming and JAVA is confusing at times....lol
    Attached Files Attached Files

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    This code has a huge problem: the Student class has got nothing to do with OOP. I recommend you completly rewrite it. Think object-oriented! And don't use the class name as the name for a static method.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member myrrdan's Avatar
    Join Date
    Nov 2002
    Location
    Alberta Canada
    Posts
    202
    Thanx for your honest criticism....lol j/k
    I recently found out that I had been goind about it all wrong.
    The probelm is that I think VB not Java...I've only been doing Java for a few months, and my tutor is no help.
    If I have any other problems with this, I'll be sure to post...
    So you'll probly be hearing from me in a few hrs...lol
    Oooops.....theres another semi-colon in the wrong spot....

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    That's what I meant. Sorry if it sounded rude.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width