Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A {
- private B b;
- public void setB(B b){
- this.b=b;
- }
- }
- public class B{
- String bab;
- public B(ba){
- ba=bab;
- }
- }
- public Main{
- public static void main(String args[]){
- A classA=new A();
- B classB=new B();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement