Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
303 B
0
Indexable
Never
package pl;

public class MyClass {
    public void display() {
        System.out.println("This is a package named 'pl'");
    }
}

import pl.MyClass;

public class Ex1 {
    public static void main(String[] args) {
        MyClass myObj = new MyClass();
        myObj.display();
    }
}