// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Tracer {
   public static void whereAmI() {
      Exception ex = new Exception();
      StackTraceElement[] ste = ex.getStackTrace();
      for(int i = 0; i < ste.length; i++) {
         System.out.println(ste[i].getMethodName());
      }
   }
   public static void subbo() {
      whereAmI();
   }
   public static void main(String[] args) {
      subbo();
   }
}
