same type with argument type in the function?
public Stack (Integer extensionConstant){
if(!(extensionConstant instanceof Integer)) {
// do sth
}
this.extensionConstant = extensionConstant;
}
That's not a valid method, it will not compile
no sense
What are you trying to do?
Обсуждают сегодня