/* * To change this template, choose Tools Templates * and open the template in the editor. */
/** * * @author vramali1 */public class NewClass { private int i=0; private int j=0; public void bn(NewClass g) { System.out.println(g.i); System.out.println(g.j); g.i=45; g.j=56;
} public static void main(String args[]) { NewClass n=new NewClass(); n.i=1; n.bn(n); System.out.println(n.i); System.out.println(n.j); }}
Sunday, October 18, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment