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  ava2  s. c o m*/

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