Tuesday, June 23, 2009

How to Get the Name of a Class Object


Class cls = java.lang.String.class;
String name = cls.getName();

0 comments:

 

Sample Java Codes Copyright © 2008 Green Scrapbook Diary Designed by SimplyWP | Made free by Scrapbooking Software | Bloggerized by Ipiet Notez