Revision as of 13:37, 10 September 2009 by Yoder2 (Talk | contribs)

JAVA FAQ

Q: How do I initialize and create a list in java? A source code example would be beneficial.

A: Do you mean an array? Here are some examples from Java's website

int[] factorial = { 1, 1, 2, 6, 24, 120, 720, 5040 };
char ac[] = { 'n', 'o', 't', ' ', 'a', ' ',
				 'S', 't', 'r', 'i', 'n', 'g' }; 
String[] aas = { "array", "of", "String", };

Back to ECE462

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang