Code example for Vector

Methods: size, toArray

0
	for (String w : words)
	    this.addMagnet(w);
    } 
     
    public String[] getMagnets() {
	return this.mMagnets.toArray(new String[this.mMagnets.size()]);
    } 
 
    private void applyMagnetStyles(TextView view) {
        view.setTextColor(Color.BLACK);
        view.setBackgroundColor(Color.WHITE);
        view.setSingleLine(true);
        view.setPadding(10, 10, 10, 10);
        view.setClickable(true);
    } 
 
    //OnTouchListener 
    public boolean onTouch(View view, MotionEvent event) {
	if (this.mOnClickListener != null && 
	    event.getAction() == MotionEvent.ACTION_UP) {
	    String word = ((TextView) view).getText().toString();