Results 1 to 2 of 2
  1. #1
    toby is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Help, programming database

    Hi..I am going to program a database for a user. I need to programming it in JCREATOR so that it creates profiles of the students (like name, address, phone... etc) and allow them to update it as they wish...how would I start and program this..
    can anyone give me an outline or something?
    Thanks

  2. #2
    carl is offline Member
    Join Date
    Jul 2007
    Posts
    35
    Rep Power
    0

    Default

    Make a new, larger array and copy the values of the old one into the new one.

    Java Code:
    Object[] tempArray = new Object[myArray.length + increment];
    for (int i = 0; i < myArray.length; i++) 
          tempArray[i] = myArray[i];
    myArray = tempArray;
    Every time you add an element, you should check to see if the array is at its limit, and if it is, call a method that makes it larger.

    I do suggest learning the linked list method, however, as they offer much more functionality (such as the logical extension of them, binary search trees).

Similar Threads

  1. programming
    By abcdefg in forum New To Java
    Replies: 9
    Last Post: 03-10-2008, 10:34 AM
  2. Programming a Game?
    By gt123 in forum New To Java
    Replies: 4
    Last Post: 01-01-2008, 12:41 PM
  3. Java Programming
    By JavaForums in forum Java Tutorial
    Replies: 0
    Last Post: 07-28-2007, 11:10 PM
  4. TOM programming language 2.5
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 08:31 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
  •