/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package submodule;

/**
 *
 * @author Vijayashree
 */
public class Submodule {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        System.out.println("I am the submodule");
        System.out.println("Hello");

    }
    
}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package submodule;

/**
 *
 * @author Vijayashree
 */
public class Submodule {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        System.out.println("I am the submodule");
        System.out.println("Hello");
        System.out.println("New module")

    }
    
}

Update Submodule.java