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()]);
    } 
 
    public int size() { 
        return 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