What is the equivalant of a vb.net 'friend' keyword in java?

c#, friend, internal, java, vb.net

Solution

There is no equivalent to `friend` in Java. The best you can do is to put the two classes in the same package, and make members of one class package-private (that is, without `public`, `private` or `protected`) to make them accessible to the other.

Problem

I want to program an internal(in C#) class, I was using the keyword 'Friend' in vb.Net. Now I want do the same in Java. What is the equivalent? ``` Friend Class NewClass End Class ```

Original source