If statement

class jamesprogram {

	public static void main(String args[]){
			
		int horses=4;
		
		if (horses == 4){
			System.out.println("There are 4 horses");
		} else {
			System.out.println("There are not 4 horses");
		}
			
	}
}

Leave a Reply