Programming
Workshop

Spring 2012
course
navigation

Apr 10

sam

Sam showed his Android calculator app, source in Eclipse, running in a simulator on his laptop, based on tutorials at http://developer.android.com .
His source is on his github repo, olleicua

jim

Given the interest in Java ... let's do the chop kata in object oriented java. (I've included a short java example.)
We started this ... but didn't get much class buy-in, and didn't get more than a tentative start, which is attached.
Question: what's the best way to create a java list of numbers, i.e. something like
Vector<Integer> v = new Vector<Integer>({10, 20, 32, 40});
without having to specify the size of the array explicitly?
Ryan : no; the {...} array is just like C, and doesn't know its length.
http://cs.marlboro.edu/ courses/ spring2012/programming/ notes/ Apr_10
last modified Tuesday April 10 2012 2:49 pm EDT

attachments [paper clip]

     name last modified size
[COD]Chop.java Apr 10 2012 2:32 pm 1.39kB [COD]Zoo.java Apr 6 2012 10:39 pm 3.01kB