1 /**
2 This class measures the length of a string.
3 */
4 public class StringMeasurer implements Measurer
5 {
6 public double measure(Object obj)
7 {
8 String str = (String) obj;
9 return str.length();
10 }
11 }