import java.util.Scanner;
class M6 //Main Method
{
public static void main(String args[]) //Index of Largest Number method
{
int a[];
int i;
a= new int[10];
System.out.print("Enter any 10 numbers:");
Scanner s = new Scanner(System.in);
a[0]=s.nextInt();
a[1]=s.nextInt();
a[2]=s.nextInt();
a[3]=s.nextInt();
a[4]=s.nextInt();
a[5]=s.nextInt();
a[6]=s.nextInt();
a[7]=s.nextInt();
a[8]=s.nextInt();
a[9]=s.nextInt();
System.out.println("The 10 no.'s you have entered are: ");
for(i=0;i<10;i++)
{
System.out.print(" "+a[i]);
}
double b=a[0];
for(i=0;i<10;i++)
{
if(a[i]>b)
{
b=a[i];
}
}
System.out.println("The greatest amoung 10 is "+a[i]);
}
}
this is the program i made plz tell me where i m wrong.....