public class Outer { Grid g=new Grid(); public class Inner { // how do I call a grid class function from this inner class? } } public class Grid { Grid(){} void up(){} }
public class Outer { Grid g=new Grid(); public class Inner { public void callG() { g.up(); } } }