|
||
| The Following User Says Thank You to chronoz13 For This Useful Post: | ||
JavaPF (28-12-2009) | ||
|
||||
|
FYI, it is much more efficient to allocate an array with double the current size when the limit is reached. This is because each time you allocate a new array, you have to first find the memory space for that array and allocate it, then re-populate the array with the values in the original array, a very time consuming process. I believe this is actually how the ArrayList and Vector classes increase their size (or, it may be some other function that's greater than 1).
__________________
ASCII a question .. Get an ANSI Please surround your code with [highlight=Java]code goes here[/highlight]. |
| The Following User Says Thank You to helloworld922 For This Useful Post: | ||
chronoz13 (29-12-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Object array to int array? | rsala004 | Collections and Generics | 1 | 30-10-2009 08:09 AM |
| How to Get the current directory path | JavaPF | Java Code Snippets and Tutorials | 1 | 09-10-2009 05:59 PM |
| Storing an array into an array | vluong | Collections and Generics | 4 | 22-09-2009 07:14 PM |
| How to Get the current date and time | JavaPF | Java Code Snippets and Tutorials | 2 | 02-12-2008 05:55 PM |
|
100 most searched terms
Search Cloud
|
| 2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jbutton java jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? |