代写CS12J Round Robin Lineup代做Java编程

代写Java作业,练习OOP和数据结构的基础知识。GoalsPractice with general concepts of OOP in Java, e.g. constructors, fields, accessors, and mutators.Implement a relatively simpledata structureas an instantiable class.PrerequisitesThis assignment requires knowledge of the material presented in class throughweek 08 and/or through the introductory OOP material of the textbooks.AssignmentYou shall complete the definition of a class namedLineup. An instance of classLineuprepresents a fixed-length list of strings, where some element is always the “current” element of the lineup. Accessor and mutator methods are available to inspect the current element, move to the next element (i.e., “iterate”), rename the current element, etc. Unlike a normal list or array, iterating past the last element of a lineup will return to the beginning of the lineup. A lineup is thus infinitely iterable, never-ending, etc.Starter CodeYour class must implement exactly the following methods, exactly as described. Please use this code as a starting point for the assignment.Lineup.java123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384/** * Class Lineup implements a fixed-length list of strings, where some element is always the * &"current&" element of the lineup. Accessor and mutator methods are available to inspect the * current element, move to the next element (i.e., &"iterate&"), rename the current element, etc. * Unlike a normal list or array, iterating past the last element of a lineup will return to the * beginning of the lineup. A lineup is thus infinitely iterable, never-ending, etc. * * @author Someone for CS 12J */public class Lineup // TODO: Decide on appropriate private fields /** * Constructs a new lineup using values from the given array, such that the elements of this * lineup shall be the strings in the array, in the same order. The argument array shall never be * modified by this lineup. After construction, the current element of this lineup shall be the * first element. * * @param elements an array containing the elements of this lineup */ public Lineup(String[] elements) // TODO /** * Returns the number of elements in this lineup. * * @return the number of elements in this lineup */ public int size() // TODO /** * Returns the value of the current element in this lineup. * * @return the value of the current element in this lineup */ public String current() // TODO /** * Moves to the next element in the lineup. After this method completes, the current * element will now be the element after what was previously the current. In the case that the * current element was the last element, the current element will be the first element. * * @return the value of the new current element */ public String next() // TODO /** * Replaces the value of the current element of this lineup. * * @param replacement the new value for the current element */ public void replace(String replacement) // TODO /** * Returns a string representation of this lineup. The string representation consists of a * list of the lineups members in the order they will next be encountered, enclosed in * square brackets (&"[]&"). Adjacent elements are separated by the characters &", &" (comma and * space). * * @return a string representation of this lineup */ public String toString() // TODO /** * Compares this lineup with another for equality. Returns true if and only if the other * lineup has the same members in the same order, and the same current element as well. * * @param that the lineup to be compared for equality with this lineup * @return true if the specified lineup is equal to this lineup */ public boolean equals(Lineup that) // TODO & Demonstration and TestingSee the following code and diagrams for usage of theLineupclass, expected behavior of its methods, as well as a mechanism for testing its functionality. Include this code in amainmethod in another class (e.g.LineupTest) in order to test yourLineupclass.Note that the code below usesassertionsfor testing (see link for details). In order to test the assertions, you must include the-enableassertionsor-eaargument to the JVM:java -enableassertions LineupTest You can also add this flag to your run/debug configuration in Eclipse.Requirements and TipsAll fields in classLineupmust beprivateand nonstaticYou must at least implement all of the specified methods in classLineup(even if they don’t behave correctly) in order to receive a grade.ClassLineupshall contain no print statements. (You may want to use some for debugging purposes, but please remove them when submitting).My solution class has two fields, of typeString[]andint.本团队核心人员组成主要包括BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected] 微信:codehelp QQ:99515681 或邮箱:[email protected] 微信:codehelp

你可能感兴趣的:(代写CS12J Round Robin Lineup代做Java编程)