So i'm trying to use a method to print another method. Help please? :     	public static void main(String[] args)
	{	
		System.out.println("Hello and welcome! Please enter the following: ");
		
		String q = null, s = "nul"; 
		userName(q);
		 userGender(s);
		 
		  print(userName(q));
		  print(userGender(s)); //how to achieve something like this?
	}
	public static void userName(String x)
	{
		 Scanner sc = new Scanner(System.in); 
		  System.out.print("Enter name: ");
	        String n = sc.nextLine(); 
	     



	}
	public static void  userGender(String y)
	{
		
		 Scanner sd = new Scanner(System.in); 
		   System.out.print("Enter Gender: ");
	        String v = sd.next().toString(); 
	
	

	}
	public static void print(String a)
	{
		System.out.println(a);
	
	}
	



So I was trying to make it so that a method would be used to print another method after they were done executing but I couldn't get the desired result and it gave an error.
can somebody please help?