import java.io.*;

public class example
{
int noofnodes;
Node[] thenode;

example()
{
noofnodes=5;
thenode=new Node[noofnodes];
for(int i=1;i<noofnodes;i++)
thenode[i]=new Node(i);
}

public static void main(String args[])throws Exception
{

example obj=new example();
for(int i=1;i<obj.noofnodes;i++)
System.out.print(obj.thenode[i].nodeid);

}
}

class Node
{
int nodeid;
public Node(int id)
{
nodeid=id;

}
}



i m new to distributed computing systems ...i can't understand this program ...and i need to find the successors and predecessors of each process ...can anybody help me out ...