How to dynamically call methods of Java Bean.
I have the following methods in a class of Java:
public class Bean {
   public String column1val;
   public String column2val;
   public String column2val;
} 
I need to access these methods from for loop like the below: 
for(int i=0;i<2;i++) { 
    String s = Bean.get column+i+val;
}
How can we achieve this scenario ?
 
     
     
     
     
     
     
     
     
    