What is the best way to create a toString() for an array?
I would think that you would iterate through an array until the value is null, but what if you pass an object through? JACK doesn't use generics, so I am kinda stuck in creating my ArrayList class with the given tools.
I was looking for a standard Array Implementation. If I could figure out how to accomplish that task, I could work that with my ArrayList class.
"Passing an object through " comes down to reasoning of creating an array of objects. If I were to add objects to an array, how would I be a able to print their information on the screen? Would I have to just use the cmds:
var Array tempArr;
var Date tempDate;
let tempArr = Array.new(3);
let tempArr = Date.new(02, 20, 2014);
let tempArr = Date.new(01, 15, 2003);
let tempdate = tempArr;
? But having to use a while loop to iterate through each possible?