1 2 3 4 5 6 7
package packagevisibility.testPackage; class Class2 { String doIt(String s) { return s + "-class2"; } }