public static void main ( String args[ ] )
{
for ( int i = 0; i <= 20; i++ )
{
genera ( ); <----- /* non static method genera ( )cannot be

*/ referenced from a static context
}
}

public void genera ( )
{

Perchè mi da questo errore come posso eliminarlo?