Annotation GetValue() Example

Returns the value of the attribute, which may be null.


Annotationclass GetValue() method example. This example shows you how to use GetValue() method.This method Returns the value of the attribute, which may be null.

Here is the code:-
/* 
 * @Program that Returns the value of the attribute, which may be null.
 * GetValue.java 
 * Author:-RoseIndia Team
 * Date:-16-Jun-2008
 */

import java.text.*;
public class GetValue {
public static void main(String[] args) {
String s="RoseIndia";
Annotation a=new Annotation(s);
//Returns the value of the attribute, which may be null.
Object s1=a.getValue();
System.out.println("The value of the attribute is: "+s1);
    }

}

Output of the program:-
 The value of the attribute is: RoseIndia

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

HOME | COPYRIGHT | CONTACT US