我是OOP的新手,我想在JAVA - Android中使用来自扩展类的函数,但参数数量不同。据我所知,在C#中,我可以执行以下操作: class Command { protected String cmd= NrTokens) //show on screen the status //todo}
我在Java</e
假设我有一个C#可选参数列表(这里称为x),我通过删除空值创建了一个新列表(这里这个新列表称为y) static void Main() var x = new List<long?= null);} 则推断y的类型为List<long?>。获取List<long>类型的惯用方法是什么?显式展开还是显式转换