import java.util.*;
public class Try{
private int [] arr;
private final int MAX=10;
Scanner scan=new Scanner(System.in);
public Try(){
arr =new int[MAX];
}
public void accept(){
for(int i=0;i<arr.length;i++)
arr[i]=scan.nextInt();
}
public int smallest(){
int smallest=0;
for (int i=0;i<arr.length;i++)
smallest=Math.min(smallest,arr[i]);
return smallest;
}
public int largest(){
int largest=0;
for(int i=0;i<arr.length;i++)
largest=Math.max(largest,arr[i]);
return largest;
}
public int sum(){
int sum=0;
for(int i=0;i<arr.length;i++)
sum+=arr[i];
return sum;
}
public static void main(String [] args){
int arr[ ]= {1,5,6,4,78,9,56,2,3,50};
}
/*public int fibonacci(){}
can u teach me how to do the fibonacci
*/
}
Can someone help me how put a main in this program...