摘要:
public class Pet { private String type; public Pet(String type){ this.type=type; } public String getPetType(){ return this.type; } } public class Dog extends Pe... 阅读全文
摘要:
public class ReverseStack { public static int getAndRemoveLastElement(Stack stack){ int result=stack.pop(); if(stack.isEmpty()){ return result; }else{ ... 阅读全文