Java - Write code to get Full Java Name from Class<?>

Requirements

Write code to get Full Java Name from Class<?>

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        Class c = String.class;
        System.out.println(getFullJavaName(c));
    }/*from w  ww.  j  a  v  a2s. com*/

    public static String getFullJavaName(Class<?> c) {
        return c.getName();
    }
}