0

Understanding class functions on Java

Hi, I am working on a java code which is developed already, I have to understand each class' role and functions. I thought the best way would be dividing the classes and running separately. Is that possible? I am new on java and as far as I search for test methods they all compare the results with expected results. But in this case I do not know the expected result. I will do it to understand how the code and that specific function is working. *It is a network topology simulator which send a packet to the nodes and discover neighbours and calculates optimum way to create piconets. so I want to see how packet is generated, how is routing and how is topology creation.

26th Sep 2016, 12:26 PM
dudu ok
dudu ok - avatar
1 Answer
0
The class should say what it's supposed to be returning. In the case of void you should look inside the code for returns. I don't see why you wouldn't be able to run them separately unless they needed to work with each other in order to run.
16th Nov 2016, 5:31 AM
Abir Mohammad Razzak
Abir Mohammad Razzak - avatar