Hi i need to design a lil thing in java..
there are 2 points(i have to do for 8 points) in x,y coordinate system.
When one point wants to send a data lets say "data",it should be sent to point 2 .
I thought of flag polling,when data needs to be sent , sender point should set it high and the polling sees this then the data appears to other points .
I need a basic idea as i am new to java.