title: I don't see any use of flyweight pattern. Is it really useful?
body: <p>To apply flyweight pattern, we need to divide Object property into intrinsic and extrinsic properties. Intrinsic properties make the Object unique whereas extrinsic properties are set by client code and used to perform different operations. </p>
  
  <p>But my question is why can't we have both intrinsic and extrinsic property as an instance variable (See Email class below) and just create one object outside loop and set the parameters in loop and send multiple emails with different parameters. </p>
  
  <pre><code>public class Test {
      public static void main(String[] args) {
          Email ob = new Email();
          for (int i = 0; i &lt; 10; i++) {
              ob.sender = String.valueOf(i);
              ob.sendEmail();
          }
      }
  }
  
  public class Email {
      public String sender;
      public void sendEmail()
      {
          System.out.println("Email sent to sender:"+sender);
      }
  }
  </code></pre>