loop values
|
|
So we have:
[code=java]public ArrayList <Integer>array = new ArrayList<Integer> ();
[/code]
What's the best way to save that to a character file?
loop values



something like that?Code:for(int i = 0: i < array.size(); i++) { file.write(array.get(i)); }
Last edited by Women; 07-17-2013 at 08:22 PM. Reason: use regular for loop

What would be the best way to load it then? It's saving as "1203" etc, each digit representing an integer.
| « • Removing Objects on 2nd Floor • | Makeover Mage » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |