Recursion why is return necessary? : Recursion why is "return" necessary?

DO I NEED "RETURN X" STATEMENT HERE?? BECAUSE Result is the same thing whether with or without.



    package RecursionTry1;
    
    public class RecursionTry {
    	public int run(int x)
    	{
    		if(x<5)
    		{
    			System.out.println(x);
    			run(x+1);
    			
    		}
    		System.out.println(x);
    		return x;  //<---- DO I NEED "RETURN X" STATEMENT HERE?? BECAUSE Result is the same thing whether with or without.
    	}


    	public static void main(String args[])
    	{
    	RecursionTry A=new RecursionTry();
    	A.run(1);
    }
    }

