What's the average line number per method/class?
<p>I'm interested what's the <strong>average</strong> line number per <strong>method or class</strong>. Programming language is <strong>JAVA</strong> and it's an <strong>Android</strong> project.</p>

<p>I know there is no specific number, but I'm interested what's the <strong><em>good programming practice</em></strong>?</p>

<p><strong>EDIT:</strong> For example in android I have 10 buttons <em>(3 for action bar, 7 for every day of the week so I can quickly choose some day of the week and get relevant information and so on, doesn't really matter what the application is about)</em> and only this "type of code" needs ~100 lines of code (per button I need at least 10 lines of code to <strong>initialize</strong> it and set up a <strong>onClick listener</strong>), is there a way to shrink this down a bit?</p>

<pre><code>someButton = (Button) findViewById(R.id.button);
someButton.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {               
          // do something
    }
});
</code></pre>
