Scalaã®ã¸ã§ããªãã¯ã¹ãå°ãå¦ãã§ã¿ã¾ããã(ãªããéãããããï¼ã¨ãããã°ãããã³ããé¡ããã¾ãm(_ _)m) Javaã®ã¸ã§ããªãã¯ã¹ã§ã¯ãåãã©ã¡ã¼ã¿ã¯å ±å¤/åå¤ã§ã¯ãªã Javaã§ãããªã³ã¼ããæ¸ãã¦ã³ã³ãã¤ã©ã«æããããã¨ãªãã§ããã public interface Animal { } public class Dog implements Animal{ } public class App { public static void main(String[] args) { ArrayList<Animal> animals = new ArrayList<Dog>(); } } ArrayList<Animal> animals = new ArrayList<Dog>(); ã¨ããã¨ãåããã¹ãããã¨ãªãã¾ãã ã¤ã¾ããArrayListã®ãµãåã¨ãã¦ãArra
{{#tags}}- {{label}}
{{/tags}}