Java program won't print out the smallest number in an array. : I'm trying to find the largest and smallest number in my array however, it only seems to print out the largest and not the smallest, I'm fairly new so all help is appreciated, thank you.

import java.util.Scanner;

public class Ex1 {

	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);
		int[] numbers = new int[11];
		
		int largest = numbers[0];
		int smallest = numbers[0];
			
		System.out.println("Enter 10 numbers = ");
		
		for (int i = 1; i < numbers.length; i++) {
			numbers[i] = keyboard.nextInt();
			System.out.println("Number " + i + " = " + numbers[i]);
		
		for (int y = 1; y < numbers.length; y++) {
			if (numbers[y] > largest)
			{
				largest = numbers[y];
			}
		}
			
		for (int x = 1; x < numbers.length; x++)	
		{
			if (numbers[x] < smallest)
			{
				smallest = numbers[x];
			}
		}	
		
		}
				
			System.out.println("Largest number = " + largest);
			System.out.println("Smallest number = " + smallest);
			
		
		
		
	} // main

} // class