Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2007, 09:04 PM
Member
 
Join Date: Jul 2007
Posts: 40
toby is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 06:53 AM
Member
 
Join Date: Jul 2007
Posts: 35
carl is on a distinguished road
Make a new, larger array and copy the values of the old one into the new one.

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).
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
programming abcdefg New To Java 9 03-10-2008 11:34 AM
Programming a Game? gt123 New To Java 4 01-01-2008 01:41 PM
Java Programming JavaForums Java Tutorials 0 07-29-2007 12:10 AM
TOM programming language 2.5 JavaBean Java Announcements 0 07-14-2007 09:31 PM


All times are GMT +3. The time now is 12:26 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org