Create a multi-file program where in one file a string message is taken as input from the user and the function to display the message on the screen is given in another file (make use of Scanner package in this program)
Not executable here
Run this program in your device
Code of Package
Make a Folder of any name eg. MultiFile
Under that folder put code of package with any name eg.MultiFilepackage.java
Code to import Package
import the code of package file you put in your folder
in my case folder is MultiFile and name of code file is MultiFilepackage.java so import MultiFile.MultiFilepackage.java
0 Comments:
Post a Comment