(LinkedListNode n)
| 6 | public class Question { |
| 7 | |
| 8 | public static boolean deleteNode(LinkedListNode n) { |
| 9 | if (n == null || n.next == null) { |
| 10 | return false; // Failure |
| 11 | } |
| 12 | LinkedListNode next = n.next; |
| 13 | n.data = next.data; |
| 14 | n.next = next.next; |
| 15 | return true; |
| 16 | } |
| 17 | |
| 18 | public static void main(String[] args) { |
| 19 | LinkedListNode head = AssortedMethods.randomLinkedList(10, 0, 10); |
no outgoing calls
no test coverage detected