Hi,
i have a small query.
public static void main(
String[] args) {
// TODO Auto-generated method stub
String str = "Sairam";
Integer i = new Integer(1);
System.out.println(str.getClass().getName());
System.out.println(i.getClass().getName());
}
The below code returns the class name with the full package structure i.e
java.lang.String
java.lang.Integer
But if i need only the class name without the full package how do i do it?
Kindly help me out.