Beginner Please Help: How to pass variables in this code? :     //Inventory Items classs
    import java.util.Scanner;

    public class InventoryItems {

	    public int sackrice = 4;
	    public int animalfeed = 12;
	    public int trayeggs = 15;
	    public int bottlemilk = 9;

	    ItemSupplier supple = new ItemSupplier();
	    public void inventoryItem() {
		    System.out.println("\nAvailable items:\n");
		    sackrice = sackrice + supple.getRice();
		    System.out.println("Sack of rice: " + sackrice);
		    if(sackrice < 10)
			System.out.println("Sack of rice low, please restock");
		    System.out.println();
		
		    System.out.println("Animal feed: " + animalfeed);
		    if(animalfeed < 10)
			    System.out.println("Animal feed low, please restock");
	        	System.out.println();
		
		    System.out.println("Tray of eggs: " + trayeggs);
		    if(trayeggs < 15)
			    System.out.println("Tray of eggs low, please restock");
		        System.out.println();
		
		    System.out.println("Bottle of milk: " + bottlemilk);
		    if(bottlemilk < 15)
			    System.out.println("Bottle of milk low, please restock");
		    System.out.println();
		    press();
	    }

	    public static void press(){
		    Scanner input = new Scanner(System.in);
		    System.out.println("Press Enter to continue...");
		    String enter = input.nextLine();
	    }
    }
    
    //Item Supplier class
    import java.util.Scanner;

    public class ItemSupplier {
	    public int z;
	    Scanner scan = new Scanner(System.in);

	    public void ricesupplier() {
		    System.out.println("How many sacks of rice would you like to 
        order?");
		    z = scan.nextInt();
	    }
	    public int getRice() {
		    return z;
	    }
	
	    public void feedsupplier() {
		
	    }
	    public void eggsupplier() {
		
	    }
	    public void milksupplier()	 {
		
	   }
    }
The "z" I get from getRice() is 0. It only takes the declared but initialized z. How do I get the "z" that was inputed in ricesupplier() method? Specfically, here: System.out.println("How many sacks of rice would you like to order?");
z = scan.nextInt(); I'm really just a beginner please help me. 