çµæ§ãªãã¨ãªããªç¶æ ã§ãã£ã¦ããJavaã®ã¤ã³ãã¼ã¯ã©ã¹ï¼å é¨ã¯ã©ã¹ï¼ã«ã¤ãã¦ã¾ã¨ãã¾ããã publicãªã¤ã³ãã¼ã¯ã©ã¹ public class Outer { private int field; private static int staticField; public void hoge() { // ã¢ã¦ã¿ã¼ã¯ã©ã¹ããã¤ã³ã¹ã¿ã³ã¹ã®çæå¯è½ Inner inner = new Inner(); inner.bar(); System.out.println("Outer#hoge"); } public class Inner { public void bar() { // ã¢ã¦ã¿ã¼ã¯ã©ã¹ã®ãã£ã¼ã«ããstaticå¤æ°ãåç §å¯è½ int local = field; int local2 = staticField; System.out.println("Inner#ba
{{#tags}}- {{label}}
{{/tags}}