I am looking for a Java developer who can help me with a simple depth method. i have a code the takes dependencies like this
R2 R1
R3 R1
R5 R2 R4
R6 R5 R3
R7 R3
R8 R6 R2 R7
where R2 depends on R1
and R5 depends on R2 and R4
and so on like the file I sent. so my code takes line argument as the base requirement for example if we take R1 as argument and enter what i just provided the output should be like this
1 R2
1 R3
2 R5
2 R7
3 R6
4 R8
the number before the requirement is how many steps/depth the requirement is from the argument the program was given. i want you to modify my code to include this feature