摘要: public class Pet { private String type; public Pet(String type){ this.type=type; } public String getPetType(){ return this.type; } } public class Dog extends Pe... 阅读全文
posted @ 2018-09-27 11:11 chan_ai_chao 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public class ReverseStack { public static int getAndRemoveLastElement(Stack stack){ int result=stack.pop(); if(stack.isEmpty()){ return result; }else{ ... 阅读全文
posted @ 2018-09-27 09:22 chan_ai_chao 阅读(97) 评论(0) 推荐(0) 编辑