ok save the timestamp as a string.
then you save each character of the string into a spot on an array.
the for loop in my code does that. timeString.substring(i,i+1) just substrings the i'th character of the string.
and saves it to the i'th position of the array.
you could also say
while (timeString.substring(i,i+1) != ":")
{
insert for loop here.(as written above)
}
that would only save the digits of the timestamp to the locations of the array.
then for whatever reason you need to nab the first number of the timestamp.
you just pass the array locatoins to the other method that draws the number
array[0] will = 2
array[1] = 3
array[2] = 4
array[3] = 5
array[4] = 1
array[5] = 5
see? that will split up each number into its own array location.
I'm surprised more of you people don't get hit by cars.
Bookmarks