/** * Created by SUDHEER YEDOTI on 6/10/2017. **/ public class testarray { public static void main(String[] args) { double[] mylist={1.9,2.9,3.4,3.5}; for(int i=0;imax) max=mylist[i]; } System.out.println("max is"+max); } }