Hey barbara,
You have your array initialized as StringBuffer, but you have data type as 'int' in setm() and getm(). I recommend that you change all 'int' into 'StringBuffer'. Plus, (m == a) will set the value of m, which is the memory location of the array, into the variable 'a'. You can have your arrays private. Private can be accessed within the class.
You might want to consider using loops to go through an array and access/modify it.
Here is an example:
In the example above, setM() will set the value "myValue" in the array, and the getM() will print "myValue" 10 times.
[ June 15, 2004: Message edited by: Dipen Javia ]