public class Enemy{

	int x;
	int y;
	char c;
	boolean down = true;
	boolean visible = true;
	Field f1;

	public Enemy(int x, int y, char c){
		this.x = x;
		this.y = y;
		this.c = c;
	}

	public int getX(){
		return this.x;
	}

	public int getY(){
		return this.y;
	}

	public char getC(){
		return this.c;
	}

	public void setX(int x){
                this.x = x;
        }

        public void setY(int y){
                this.y = y;
        }

	public boolean getDown(){
		return down;
	}

	public void setVisible(boolean t){
		this.visible = t;
	}

	public boolean getVisible(){
		return visible;
	}

	public void fire(){
		Bullet b2 = new Bullet(getY(),8,'~');
	}

	public void actual(Field f){

		this.f1 = f;

		if( down && getY() == f.getHeight()-1)
			down = false;
		if( down == false && getY() == 0)
			down = true;

		
		if(down)
			y++;
		else
			y--;
	}

        public void actual(Bullet b, Enemy e, Field f){

		if(b.getX() == f.getWidth()-1 && e.getY() == b.getY())
                        this.visible = false;
       } 
}

@@ -1,42 +1,154 @@
-public class Enemy%7B%0A%0A%09int x;%0A%09int y;%0A%09
+/**%0A%09Enemy moves on the right side of the screen (up or down) one step at a time.%0A%09 %0A*/%0Apublic class Enemy%7B%0A%0A%09private int x;%0A%09private int y;%0A%09private 
 char
@@ -152,16 +152,24 @@
 har c;%0A%09
+private 
 boolean 
@@ -182,16 +182,24 @@
  true;%0A%09
+private 
 boolean 
@@ -880,16 +880,17 @@
 ght()-1)
+%7B
 %0A%09%09%09down
@@ -899,16 +899,20 @@
  false;%0A
+%09%09%7D%0A
 %09%09if( do
@@ -938,16 +938,17 @@
 () == 0)
+%7B
 %0A%09%09%09down
@@ -956,16 +956,19 @@
 = true;%0A
+%09%09%7D
 %0A%09%09%0A%09%09if
@@ -973,16 +973,17 @@
 if(down)
+%7B
 %0A%09%09%09y++;
@@ -989,12 +989,14 @@
 ;%0A%09%09
+%7D
 else
+%7B
 %0A%09%09%09
@@ -1000,16 +1000,20 @@
 %09%09%09y--;%0A
+%09%09%7D%0A
 %09%7D%0A%0A    
@@ -1121,16 +1121,17 @@
 .getY())
+%7B
 %0A       
@@ -1169,16 +1169,20 @@
  false;%0A
+%09%09%7D%0A
        %7D

Update Enemy.java