public const A first;
public const B second;
这两行给出错误,我该如何修改它。
public class TwoTuple<A,B>
{
public const A first;
public const B second;
public TwoTuple(A a,B b)
{
first=a;
second=b;
}
public String toString()
{
return ")"+first+", " +second+")";
}
}