How do i create a class and the methods I need?
<p>What i need to do is create an app which will generate a random mathmatical expression for the user to solve based on a difficulty level that they select.</p>

<p>eg. novice: a random operation on 2 terms
    easy: random operations on 2 or 3 terms</p>

<p>What I'm struggling with is creating a class to handle the creation of expressions</p>

<p>My Game class is as follows:</p>

<pre><code>package w1279057.CW1;

import android.app.Activity;
import android.os.Bundle;


public class Game extends Activity {

public static final String KEY_DIFFICULTY = "w1279057.CW1.difficulty";
public static final int DIFFICULTY_NOVICE = 0;
public static final int DIFFICULTY_EASY = 1;
public static final int DIFFICULTY_MEDIUM = 2;
public static final int DIFFICULTY_GURU = 3;

private int puzzle[];



@Override   
public void onCreate(Bundle savedInstanceState) {
    int diff = getIntent().getIntExtra(KEY_DIFFICULTY, DIFFICULTY_NOVICE);
    setContentView(R.layout.gameview);
}


}
</code></pre>

<p>What i think i need is a class which has methods for generating a specific amount of operations randomly and then generating the random numbers for the expressions as well, once i have a valid expression i need to update a textview to display the expressions.</p>

<p>Am i on the right track?</p>
