Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;

public class Main {
    private static List<Class<?>> getAllSuperClass(Class<?> claz, List<Class<?>> list) {

        if (claz.getSuperclass() != null) {
            list.add(claz.getSuperclass());
            getAllSuperClass(claz.getSuperclass(), list);
        }
        return list;
    }
}