Write a program to create a multilevel package and also creates a reusable class to generate Fibonacci series, where the function to generate fibonacii series is given in a different file belonging to the same package.

Write a program to create a multilevel package and also creates a reusable class to generate Fibonacci series, where the function to generate fibonacii series is given in a different file belonging to the same package.

Not executable here

Run this program in your device

Code of Package

Make a Folder of any name eg. Fibpackage

Under that folder put code of package with any name eg.Fibpackage.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 Fibpackage.java so import Fibpackage.Fibpackage.java

Share:

0 Comments:

Post a Comment

Pageviews