title: How to extract the name of all classes in a normal String from java class?
body: <pre><code>public class A {
  
      public class B{
  
          public class C {
  
          }
  
      }
  
      public class D {
  
      }
  }
  </code></pre>
  
  <p>If this is my example how I write a java code to get then names of classes like A,B,C and D in a string. Help will highly be appreciated. Thank you</p>