Re: Get object name?

Giganews Newsgroups
Subject: Re: Get object name?
Posted by:  GArlington (garlingt…@tiscali.co.uk)
Date: Mon, 17 Mar 2008

On Mar 17, 11:10 am, howa <howac.…@gmail.com> wrote:
> A simple code like:
>
> a = new User();
>
> How can I print out the class name which a belong to?
>
> Thanks.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html

Replies

None

In response to

Get object name? posted by howa on Mon, 17 Mar 2008