How to solve a "can not be resolved to a variable" error in Java?
<p>i was wondering if anyone could help me figure out why my program keeps telling me the seperate_numbers can not be resolved to a variable. Also what type would i have to assign Seperate_number to make this program work. it must contain the two method headers public static void seperate_number(int integer) and public static int intGetNum.</p>

<p>Thanks for any help </p>

<pre><code>import java.util.*;

public class Deprey_J_prog1
{
    static Scanner console = new Scanner (System.in);

    public static void main (String[] args)
    {
        int main_Number;
        main_Number =  intGetNum();
        Seperate_number = main_Number;
    }

    static int num, b, a, integer;

    public static int intGetNum()
    {
        int ret_val = 0;
        System.out.print("please enter a 5 integer number");
        integer = console.nextInt();
        return ret_val;
    }

    public static void Seperate_number(int integer)
    {
        for (a = 1; a &lt;=5; a++)
        {
            for (b= 1; b &lt;= a; b++)
                num = ((integer % 10) / 10);
        }
    }
}
</code></pre>
