Output Character from Object


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Output Character from Object

  1. #1
    Chirag Guest

    Output Character from Object


    Hello everyone,

    I'm trying to retrieve Character from an Object, and when i display it, i
    get a weird output, i think it's the unicode of the Character,
    ie. when i output 'a' i get this output Character@dd1f7
    Can someone tell me how to sort this out.

    Regards,
    Chirag

  2. #2
    Soft Solution System Limited Guest

    Re: Output Character from Object

    In your object add the following method

    public String toString() {
    return a;
    }

    "Chirag" <chiragvaland@hotmail.com> gl news:3cded26c$1@10.1.10.29...
    >
    > Hello everyone,
    >
    > I'm trying to retrieve Character from an Object, and when i display it, i
    > get a weird output, i think it's the unicode of the Character,
    > ie. when i output 'a' i get this output Character@dd1f7
    > Can someone tell me how to sort this out.
    >
    > Regards,
    > Chirag




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center