JAVA PROJECT USING ( WHILE LOOP )
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving left 1 position.
Bubble 1 and 2 are moving left 1 position.
Bubble 1 and 2 are moving left 1 position.
This is pass 2.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving left 1 position.
Bubble 1 and 2 are moving left 1 position.
This is pass 3.
Bubble 1 and 2 are moving right 1 position.
Bubble 1 and 2 are moving left 1 position.
This is pass 4.
Bubble 1 is not moving.
Bubble 2 is not moving.