title: How can I call the method after another method?
body: <p>I want to develop a library with a new idea for Android applications but I have problem. How can I call the method after another method?</p>
  
  <p>for example...</p>
  
  <pre><code>Toast.makeText(context, "", Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>my codes</p>
  
  <p>MyClass class</p>
  
  <pre><code>public class MyClass {
  
      public static MyClass A(){
          return A();
      }
  
      public static void show(){
  
      }
  </code></pre>
  
  <p>MainActivity Class</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      //It's normal
      MyClass.A();
      //if he wrote like this I want tell him error
      MyClass.show();
      //I want like this
      MyClass.A().show();
  
  }
  </code></pre>