Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrajaktaSathe/Java
/ newNode
Method
newNode
Programs/RemoveloopinLinkedList.java:72–77 ·
view source on GitHub ↗
(int data)
Source
from the content-addressed store, hash-verified
70
class
GFG
71
{
72
public
static
Node newNode(
int
data){
73
Node temp =
new
Node();
74
temp.data = data;
75
temp.next = null;
76
return
temp;
77
}
78
79
public
static
void
makeLoop(Node head,
int
x){
80
if
(x == 0)
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected