Annotation ToString() Example

Returns the String representation of this Annotation.


Annotationclass ToString() method example. This example shows you how to use ToString() method.This method Returns the String representation of this Annotation.

Here is the code:-
/* 
 * @Program that Returns the String representation of this Annotation.
 * ToString.java 
 * Author:-RoseIndia Team
 * Date:-16-Jun-2008
 */

import java.text.*;
public class ToString {
public static void main(String[] args) {
String s="RoseIndia";
Annotation a=new Annotation(s);
//Returns the String representation of this Annotation.
String d=a.toString();
System.out.println("The String representation of this Annotation is: "+d);
    }

}

Output of the program:-
 The String representation of this Annotation is: java.text.Annotation[value=RoseIndia]

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US