摘要:
1packageio;23importjava.io.*;45/***//**6*@author7*@version1.08*/9publicclassReadLineFromFile10{11/***//**12*Attributes13*/14privateBufferedReaderbr;15privateStringfilePath;1617/***//**18*Constructor19*/20publicReadLineFromFile()21{22}2324/***//**25*Constructor26*/27publicReadLineFromFile(StringfileP 阅读全文
摘要:
1packagebTree;23importjava.io.Serializable;4importjava.util.Iterator;56/***//**7*Interfaceforabtree8*9*@author10*@version1.011*/12publicinterfaceIBTreeextendsSerializable13{14/***//**15*Methodthatwilladdannodeintothebtree16*17*@paramonodetoadd18*/19@SuppressWarnings("unchecked")20publicvoi 阅读全文
摘要:
1/***//**2*ADTbinarysearchtree3*/4packagebinarySearchTree;56importjava.io.Serializable;7importjava.util.Iterator;89/***//**10*@author11*@version1.012*/13publicinterfaceIBinarySearchTreeextendsSerializable14{15/***//**16*Getthesizeofbinarysearchtree17*18*@returnanintofbinarysearchtree'ssize19*/20 阅读全文
摘要:
1packagestack;23/***//**4*Thisisstackinterface5*6*@author7*@version1.08*/9publicinterfaceIStack10{11/***//**12*Methodthatwillreturnthelastelementinthestack,ifthereisno13*elementleft,itwillreturnnull14*15*@returnobject,thelastelementinthestack16*/17publicObjectpeek();1819/***//**20*Methodthatwillretu 阅读全文
摘要:
1packagequeue;23/***//**4*Thisisqueueinterface5*6*@author7*@version1.08*/9publicinterfaceIQueue10{11/***//**12*Methodthatwillpushtheelementspecifiedbytheparameterintothe13*queue14*15*@paramobject,theelementthatwillbepushintothequeue16*/17publicvoidenQueue(Objectobject);1819/***//**20*Methodthatwillr 阅读全文
摘要:
1packagelist;23importjava.io.*;4importjava.util.*;56/***//**7*<p>8*The<code>List</code>interfaceisdesignedtobeusedasabasisforall9*theLinearADT'sthatwillbedevelopedintheCMPP307classatSAIT.The10*implementorsofthisinterfacewillberequiredtoaddallthefunctionality,11*therewillbeno< 阅读全文