read from class defined by variable
<p>I have Java-related question:</p>

<p>I want to know is there a way to create path to class (in program) by using a variable(s).
Im making a program that will download pictures from certain sites and show them to a user. However, different sites have different forms, that's why I have to define a series of functions specific to each. They cannot be put in the same class because functions that preform same job (just for another site) would have to have same names. I'm trying to make adding support for another site later as simple as possible.</p>

<p>Anyway, the question is, could I call a function in program using a variable to determine its location.</p>

<p>For example: <code>code.picturesite.functionINeed();</code></p>

<p><code>code</code> is the package containing all of the coding, and <code>picturesite</code> is not a class but rather a variable containing the name of the desired class - that way I can only change value of the variable to call a different function (or the same function in a different class).</p>

<p>I don't really expect that to be possible (this was more for you to understand the anture of the problem), but is there another way to do what I'm trying to achieve here?</p>
