[SOLVED] Help with Matrix

Ok, i recieved a basic program to build which required me to build a matrix of a size chosen by the user and with his inputs of the numbers.I have to then find the third smallest value. For some reason i can't seem to get that third number. This is my program, one of my problems is that it doesnt really work right and 2 it carries the initialisation problem. ( Its a french class so ignore the french words;) )

import java.util.Scanner;

public class Laboratoire3s

{

public static void main(String[] args)

{

int i,x,y;

double t1,t2,t3;

Scanner scan = new Scanner(System.in);

System.out.println("Entrez le nombre de case dans votre tableau");

double[] notes = new double[scan.nextInt()];

t1=notes[0];

t2=notes[0];

t3=notes[0];

System.out.println("Maintenant, entrez les entier destine a remplire votre tableau");

for (i=0;i<notes.length;i++)

notes[i]=scan.nextInt();

y=0;

x=0;

for (i=0;i<notes.length;i++)

{

if (t1>notes[i]);

{

t1=notes[i];

x = i;

}

if (notes[i]<t2 && x != i)

{

t2=notes[i];

y = i;

}

if(notes[i]<t2 && y != i)

t3=notes[i];

}

System.out.println(t1 +" et "+ t2 +" et " + t3);

}

}