empty (boolean flag): requires: none. input: none. results: if the number of
elements in L is zero, then flag is set to true otherwise false. output: flag.
• full (boolean flag): requires: none. input: none. results: if the number of elements
in L has reached the maximum then flag is set to true otherwise false. output: flag.
• findFirst ( ): requires: list L is not empty. input: none. results: first element set
as the current element. output: none.
• findNext ( ): requires: list L is not empty. Current is not last. input: none.
results: element following the current element is made current. output: none.
• last (boolean flag): requires: L is not empty. input: none. results: if the last
element is the current element then flag is set to true otherwise false. output: flag.
• retrieve (Type e): requires: list L is not empty. input: none. results: current
element is copied into e. output: element e.
• update (Type e): requires: list L is not empty. input: e. results: the element e
is copied into the current node. output: none.
• insert (Type e): requires: list L is not full. input: e. results: a new node
containing element e is created and inserted after the current element in the list.
The new element e is made the current element. If the list is empty e is also made
the head element. output: none.
2
• remove ( ): requires: list L is not empty. input: none. results: the current
element is removed. If L is empty, current will point to null. If the next element
exists, it is made current, else the first element is made current. output: none.
New methods:
• insertBefore(T e): requires: list L is not full. input: e. results: a new node
containing element e is created and inserted before the current element in the list.
The new element e is made the current element. If the list is empty e is inserted at
the beginning and also made the head element. output: none
2. Write a class called ListUtils having the following static methods:
(a) public static List<Integer> insertInOrder(List<Integer> l, Integer a): A static method
that inserts an Integer a into the list of integers l. The input list l is assumed to be
in increasing order and must remain that way after inserting a.
(b) public static List<Integer> readValues(String fileName): A static method that reads
integer values from a file fileName and inserts them into a list in increasing order.
The method should return the created list. You may choose ArrayList or LinkedList
to build your List.
(c) public static List<Integer> merge(List<Integer> l1, List<Integer> l2): A static method
that merges the two lists l1 and l2, which are given in increasing order, and returns
the newly created list which must also be in increasing order.
Hello
I'm expert java developer with experience in object oriented, data structure, swing, javafx and more advanced .
I can help you to finish this project with great quality.
Regards.
$15 USD în 2 zile
4,9 (428 recenzii)
6,6
6,6
12 freelanceri plasează o ofertă medie de $23 USD/oră pentru proiect
Hello?
How are you?
I have good skills in java....
So I can help you if you want.
Also I have read your description in detail.
I have enough experiences for 7 yrs .
I will never disappoint you.
Thank you.
السلام عليكم بعد التحية
مع الشكر والحية
empty (boolean flag): requires: none. input: none. results: if the number of
elements in L is zero, then flag is set to true otherwise false. output: flag.
• full (boolean flag): requires: none. input: none. results: if the number of elements
in L has reached the maximum then flag is set to true otherwise false. output: flag.
• findFirst
Hello, I am interested in this project and so wanted to discuss more it in details. I have a lot of experience in Java programming. I will provide you quality work according to your instrument. I am ready to discuss with you
Thank you.
Hi
Thanks for coming
I have checked your description thrice and very interested in your project - "java code"
I am a full stack java developer and very familiar with its OOP and the class structure of it
I can deliver the result in the short time
Let us discuss more via chat
Kind regards
Tang Z
Hi Java Expert here, Well i have done dozens of assignments like this. Just give me a message and your work will be done for sure,
Looking forward to work with you.
Aslam o Alikum brother.
I have great experience in Java development, hands on experience in Java OOP and data structure, I review your requirements and I think I can do this work for you.
Thanks